geoip: Don't NULL-terminate download buffer
commit2643e4e881eb11c1ca1fbd551ce60f035a32007b
authorTobias Klauser <tklauser@distanz.ch>
Wed, 11 Nov 2015 13:48:10 +0000 (11 14:48 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 11 Nov 2015 13:48:10 +0000 (11 14:48 +0100)
treea34bda1f3290b504546f25e8ae9682ba475467ec
parent2f43dee3a51eeb96746c0f27bba837b9e423788b
geoip: Don't NULL-terminate download buffer

The end of the buffer might already contain part of the data payload.
Setting the last byte to 0 will thus corrupt the gz file, leading to
failed decompression (or previously, to invalid GeoIP database files).
The NULL-termination is not necessary in this case, so just omit it.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
geoip.c