fix for broken stdout

This commit is contained in:
cfsmp3 2015-03-01 09:12:12 +01:00
parent b45370cbb4
commit 27e2bb9017

View File

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