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:
Viktor Szakats 2025-10-17 18:31:52 +02:00
parent b9b8a7a5df
commit f32451c12b
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
8 changed files with 24 additions and 36 deletions

View file

@ -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;