Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 9c5603b

Browse files
committed
Fix a regression in database_info
This was introduced in the recent read() -> pread() changes. Thanks for fixing this, Greg!
1 parent c45ece3 commit 9c5603b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libGeoIP/GeoIP.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,6 @@ char *GeoIP_database_info(GeoIP * gi)
20442044
if (pread(fno, buf, 3, offset) != 3) {
20452045
return NULL;
20462046
}
2047-
offset += 3;
20482047
if (buf[0] == 255 && buf[1] == 255 && buf[2] == 255) {
20492048
hasStructureInfo = 1;
20502049
break;

0 commit comments

Comments
 (0)