-stdin was broken, fixed.

This commit is contained in:
cfsmp3 2015-03-02 09:48:55 +01:00
parent 10ea570229
commit 04ccb477f1

View File

@ -182,7 +182,8 @@ int main(int argc, char *argv[])
strcpy (ctx->basefilename, ctx->basefilename_for_network);
break;
}
for (c=ctx->basefilename+strlen (ctx->basefilename)-1; ctx->basefilename>=0 &&
for (c = ctx->basefilename + strlen(ctx->basefilename) - 1; c>ctx->basefilename &&
*c!='.'; c--) {;} // Get last .
if (*c=='.')
*c=0;