Skip to content
Snippets Groups Projects
Commit 058c8b36 authored by rswindell's avatar rswindell
Browse files

Fixed endian bug in iniReadIpAddress().

parent 626d091d
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,7 @@ ulong iniReadIpAddress(FILE* fp, const char* section, const char* key, ulong def
if(strchr(value,'.')==NULL)
return(strtol(value,NULL,0));
return(inet_addr(value));
return(ntohl(inet_addr(value)));
}
double iniReadFloat(FILE* fp, const char* section, const char* key, double deflt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment