non-const 2nd parameter for strtol/strtod

Originally committed as revision 11803 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs
2008-02-02 00:54:37 +00:00
parent 2755e41d26
commit 815f98cce4
2 changed files with 15 additions and 16 deletions

View File

@ -3841,12 +3841,12 @@ static int parse_ffconfig(const char *filename)
get_arg(stream->feed_filename, sizeof(stream->feed_filename), &p);
} else if (!strcasecmp(cmd, "FileMaxSize")) {
if (feed) {
const char *p1;
char *p1;
double fsize;
get_arg(arg, sizeof(arg), &p);
p1 = arg;
fsize = strtod(p1, (char **)&p1);
fsize = strtod(p1, &p1);
switch(toupper(*p1)) {
case 'K':
fsize *= 1024;