diff --git a/src/sbbs3/install/httpio.c b/src/sbbs3/install/httpio.c index 04a5f292673352ab5829b383e1ea1d6d15396493..b1c1f7a045ebce60a241dfe90b9890d07f4678ff 100644 --- a/src/sbbs3/install/httpio.c +++ b/src/sbbs3/install/httpio.c @@ -198,8 +198,8 @@ int http_get_fd(char *URL, size_t *len, char *error) close(s); return(-1); } - if(len != NULL && !strncasecmp(header,"content-length: ",16)) { - *len=atoi(header+16); + if(len != NULL && strncasecmp(header,"content-length:",15)==0) { + *len=atol(header+15); } } return(s);