This commit is contained in:
Adam Ierymenko 2015-10-22 17:50:00 -07:00
parent dee6e7e3c1
commit 2a3dd53952

View File

@ -148,7 +148,7 @@ void ClusterGeoIpService::threadMain()
else break;
}
for(long i=0;i<n;++i) {
if (lineptr > sizeof(linebuf))
if (lineptr > (long)sizeof(linebuf))
lineptr = 0;
if ((buf[i] == '\n')||(buf[i] == '\r')) {
linebuf[lineptr] = (char)0;