diff --git a/src/ccextractor.c b/src/ccextractor.c index 2676b76a..6e678885 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -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;