GCC Wallification
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
#ifndef _WIN32
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h> /* For ntohl */
|
||||
#include <arpa/inet.h>
|
||||
#else
|
||||
#include <windows.h>
|
||||
#endif
|
||||
@ -649,7 +650,7 @@ char *_get_name (GeoIP* gi, unsigned long ipnum) {
|
||||
org_buf = malloc(sizeof(char) * (strlen(buf)+1));
|
||||
strcpy(org_buf, buf);
|
||||
} else {
|
||||
buf_pointer = gi->cache + (long)record_pointer;
|
||||
buf_pointer = (char *)gi->cache + (long)record_pointer;
|
||||
org_buf = malloc(sizeof(char) * (strlen(buf_pointer)+1));
|
||||
strcpy(org_buf, buf_pointer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user