mirror of
https://github.com/curl/curl.git
synced 2026-08-01 02:38:04 +03:00
curlx: promote Curl_fseeko() to curlx_fseek(), use it in src
- tool_formparse: replace truncated `fseek` with `curlx_fseek`.
- tool_operate: replace truncated `fseek` with `curlx_fseek`.
- tool_paramhlp: replace local duplicate `myfseek`, with `curlx_fseek`.
Follow-up to 4fb12f2891 #19100
Closes #19107
This commit is contained in:
parent
b9b8a7a5df
commit
f32451c12b
8 changed files with 24 additions and 36 deletions
|
|
@ -248,7 +248,7 @@ int tool_mime_stdin_seek(void *instream, curl_off_t offset, int whence)
|
|||
if(offset < 0)
|
||||
return CURL_SEEKFUNC_CANTSEEK;
|
||||
if(!sip->data) {
|
||||
if(fseek(stdin, (long) (offset + sip->origin), SEEK_SET))
|
||||
if(curlx_fseek(stdin, offset + sip->origin, SEEK_SET))
|
||||
return CURL_SEEKFUNC_CANTSEEK;
|
||||
}
|
||||
sip->curpos = offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue