Skip to content

Commit 04ccb47

Browse files
committed
-stdin was broken, fixed.
1 parent 10ea570 commit 04ccb47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ccextractor.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ int main(int argc, char *argv[])
182182
strcpy (ctx->basefilename, ctx->basefilename_for_network);
183183
break;
184184
}
185-
for (c=ctx->basefilename+strlen (ctx->basefilename)-1; ctx->basefilename>=0 &&
185+
186+
for (c = ctx->basefilename + strlen(ctx->basefilename) - 1; c>ctx->basefilename &&
186187
*c!='.'; c--) {;} // Get last .
187188
if (*c=='.')
188189
*c=0;

0 commit comments

Comments
 (0)