From: Frédéric Marchal Date: Wed, 18 Jul 2012 20:17:04 +0000 (+0200) Subject: Fix an error message X-Git-Tag: v2.3.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=223422fe7f0d5677b7b5dd672a28fb2754bd6485;p=thirdparty%2Fsarg.git Fix an error message The error message reporting an invalid time with command line argument -t said the time must be MM:SS instead of HH:MM. --- diff --git a/log.c b/log.c index e1a9ade..aeead61 100644 --- a/log.c +++ b/log.c @@ -458,7 +458,7 @@ int main(int argc,char *argv[]) if(strstr(optarg,"-") == 0) { if(sscanf(optarg,"%d:%d",&h1,&m1)!=2) { - debuga(_("Time period passed on the command line with option -t must be MM:SS\n")); + debuga(_("Time period passed on the command line with option -t must be HH:MM\n")); exit(EXIT_FAILURE); } hm=h1*100+m1; @@ -466,7 +466,7 @@ int main(int argc,char *argv[]) snprintf(hm_str,sizeof(hm_str),"%02d:%02d",h1,m1); } else { if(sscanf(optarg,"%d:%d-%d:%d",&h1,&m1,&h2,&m2)!=4) { - debuga(_("Time range passed on the command line with option -t must be MM:SS-MM:SS\n")); + debuga(_("Time range passed on the command line with option -t must be HH:MM-HH:MM\n")); exit(EXIT_FAILURE); } hm=h1*100+m1;