mirror of
https://github.com/curl/curl.git
synced 2026-08-25 21:03:34 +03:00
fix compiler warning: conversion may lose significant bits
This commit is contained in:
parent
5d47bf3776
commit
7e3f0bffe5
7 changed files with 85 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue