diff options
Diffstat (limited to 'geoip.c')
-rw-r--r-- | geoip.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -190,6 +190,8 @@ again: if (ret <= 0) return -EIO; + raw[sizeof(raw) - 1] = 0; + for (i = 0; i < ret; i++) { if (!strncmp(raw + i, "Content-Length: ", min(ret - i, lenl))) { ptr = raw + i + lenl; |