diff --git a/src/ccextractor.c b/src/ccextractor.c index 5d2b9f78..b27fe172 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -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;