From f43bc34ab9ab16cfaccc6b6263825fa60dda3481 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 22 Dec 2008 09:53:30 +0000 Subject: [PATCH] another GeoIP fix --- src/GeoIP.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GeoIP.c b/src/GeoIP.c index 91879243e..927f0c623 100644 --- a/src/GeoIP.c +++ b/src/GeoIP.c @@ -357,7 +357,7 @@ int _check_mtime(GeoIP *gi) { dst_start = wfilename; src_start = gi->file_path; ConvertUTF8toUTF16((const UTF8**)&src_start, (const UTF8*)src_start - + name_len, (UTF16**)&dst_start, (UTF16*)dst_start + name_len + 1 + + name_len+1, (UTF16**)&dst_start, (UTF16*)dst_start + name_len + 1 , lenientConversion); gi->GeoIPDatabase = _wfopen(wfilename,L"rb"); free(wfilename); @@ -572,7 +572,7 @@ GeoIP* GeoIP_open (const char * filename, int flags) { dst_start = wfilename; src_start = filename; ConvertUTF8toUTF16((const UTF8**)&src_start, (const UTF8*)src_start - + name_len, (UTF16**)&dst_start, (UTF16*)dst_start + name_len + 1 + + name_len+1, (UTF16**)&dst_start, (UTF16*)dst_start + name_len + 1 , lenientConversion); gi->GeoIPDatabase = _wfopen(wfilename,L"rb"); free(wfilename);