[libpng16] Fix tarith argument parsing

This commit is contained in:
John Bowler 2012-03-05 20:43:27 -06:00 committed by Glenn Randers-Pehrson
parent d6cf3a3791
commit e2ae0f2f2b

View File

@ -90,12 +90,12 @@ int validation_ascii_to_fp(int count, int argc, char **argv)
while (--argc > 0) while (--argc > 0)
if (strcmp(*++argv, "-a") == 0) if (strcmp(*++argv, "-a") == 0)
showall = 1; showall = 1;
else if (strcmp(*++argv, "-e") == 0 && argc > 0) else if (strcmp(*argv, "-e") == 0 && argc > 0)
{ {
--argc; --argc;
max_error = atof(*++argv); max_error = atof(*++argv);
} }
else if (strcmp(*++argv, "-E") == 0 && argc > 0) else if (strcmp(*argv, "-E") == 0 && argc > 0)
{ {
--argc; --argc;
max_error_abs = atof(*++argv); max_error_abs = atof(*++argv);