Permalink
Browse files

Fix another bug in JSON parser (negative floats)

  • Loading branch information...
1 parent 109a3ac commit 39cb4520fcbf5df27127c676e22b68740d0abc77 @andoma committed Oct 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/misc/json.c
View
@@ -302,6 +302,8 @@ json_parse_integer(const char *s, long *lp)
while(*s > 0 && *s < 33)
s++;
const char *s2 = s;
+ if(*s2 == '-')
+ s2++;
while(*s2 >= '0' && *s2 <= '9')
s2++;

0 comments on commit 39cb452

Please sign in to comment.