fix compiler warning: conversion may lose significant bits

This commit is contained in:
Yang Tse
2010-12-01 23:33:43 +01:00
parent 5d47bf3776
commit 7e3f0bffe5
7 changed files with 85 additions and 8 deletions

View File

@@ -379,7 +379,7 @@ static int ftp_endofresp(struct pingpong *pp,
size_t len = pp->nread_resp;
if((len > 3) && LASTLINE(line)) {
*code = strtol(line, NULL, 10);
*code = curlx_sltosi(strtol(line, NULL, 10));
return 1;
}
return 0;