diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-03 15:26:33 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-03 15:26:33 +0200 |
commit | 9289c4b796b03fc1f164964466542090a2779be4 (patch) | |
tree | d4a0dab413992a09e3775de40d2873ed623962e8 /sys/src/libhttpd/httpunesc.c | |
parent | 0d93e2fe70ebbed69d65ef711f4060e949af1285 (diff) |
libhttpd: use strtol to parse decimal character references in httpunesc()
Diffstat (limited to 'sys/src/libhttpd/httpunesc.c')
-rw-r--r-- | sys/src/libhttpd/httpunesc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libhttpd/httpunesc.c b/sys/src/libhttpd/httpunesc.c index 85a8df639..05dc63b55 100644 --- a/sys/src/libhttpd/httpunesc.c +++ b/sys/src/libhttpd/httpunesc.c @@ -18,7 +18,7 @@ httpunesc(HConnect *cc, char *s) for(t = v; c = *s;){ if(c == '&'){ if(s[1] == '#' && s[2] && s[3] && s[4] && s[5] == ';'){ - c = atoi(s+2); + c = strtol(s+2, 0, 10); if(c < Runeself){ *t++ = c; s += 6; |