[xiph-commits] r7344 - branches/rel-1-0-branch/speex/src
jm at dactyl.lonelymoon.com
jm
Sun Jul 25 23:26:31 PDT 2004
Author: jm
Date: Sun Jul 25 23:26:31 2004
New Revision: 7344
Modified:
branches/rel-1-0-branch/speex/src/speexenc.c
Log:
Check that extra comments contain an '='
Modified: branches/rel-1-0-branch/speex/src/speexenc.c
===================================================================
--- branches/rel-1-0-branch/speex/src/speexenc.c 2004-07-26 06:24:30 UTC (rev 7343)
+++ branches/rel-1-0-branch/speex/src/speexenc.c 2004-07-26 06:26:30 UTC (rev 7344)
@@ -363,6 +363,12 @@
rate=atoi (optarg);
} else if (strcmp(long_options[option_index].name,"comment")==0)
{
+ if (!strchr(optarg, '='))
+ {
+ fprintf (stderr, "Invalid comment: %s\n", optarg);
+ fprintf (stderr, "Comments must be of the form name=value\n");
+ exit(1);
+ }
comment_add(&comments, &comments_length, NULL, optarg);
} else if (strcmp(long_options[option_index].name,"author")==0)
{
More information about the commits
mailing list