From 04ccb477f1415fd57a8a3537abc9ad60a3b2ad78 Mon Sep 17 00:00:00 2001 From: cfsmp3 Date: Mon, 2 Mar 2015 09:48:55 +0100 Subject: [PATCH] -stdin was broken, fixed. --- src/ccextractor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;