Update of /cvsroot/libexif/exif/exif
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19375/exif
Modified Files:
actions.c
Log Message:
Fixed numeric check to handle negative values.
Index: actions.c
===================================================================
RCS file: /cvsroot/libexif/exif/exif/actions.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -p -d -r1.50 -r1.51
--- actions.c 21 Nov 2009 23:47:15 -0000 1.50
+++ actions.c 22 Nov 2009 00:32:21 -0000 1.51
@@ -94,7 +94,7 @@ convert_arg_to_entry (const char *set_va
"(need %d, found %d)\n"), numcomponents, i);
exit (1);
}
- if (!isdigit(*value_p)) {
+ if (!isdigit(*value_p) && (*value_p != '+') && (*value_p != '-')) {
fprintf (stderr, _("Numeric value expected\n"));
exit (1);
}
|