1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

server/util: fix logmsg format using curl_off_t argument

... this caused segfaults on armv7.

Regression added in dd0365d560 (7.70.0)

Reviewed-by: Jay Satiro
Closes #5529
This commit is contained in:
Daniel Stenberg 2020-06-05 23:03:04 +02:00
parent 47d8730d3f
commit 2705830f2f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -290,7 +290,7 @@ int write_pidfile(const char *filename)
#endif
fprintf(pidfile, "%" CURL_FORMAT_CURL_OFF_T "\n", pid);
fclose(pidfile);
logmsg("Wrote pid %ld to %s", pid, filename);
logmsg("Wrote pid %" CURL_FORMAT_CURL_OFF_T " to %s", pid, filename);
return 1; /* success */
}