summaryrefslogtreecommitdiff
path: root/geoip.c
diff options
context:
space:
mode:
Diffstat (limited to 'geoip.c')
-rw-r--r--geoip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/geoip.c b/geoip.c
index fc61184..2eff817 100644
--- a/geoip.c
+++ b/geoip.c
@@ -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;