]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
server/util: fix logmsg format using curl_off_t argument
authorDaniel Stenberg <daniel@haxx.se>
Fri, 5 Jun 2020 21:03:04 +0000 (23:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 6 Jun 2020 11:25:56 +0000 (13:25 +0200)
... this caused segfaults on armv7.

Regression added in dd0365d560aea5a (7.70.0)

Reviewed-by: Jay Satiro
Closes #5529

tests/server/util.c

index 75f3cb1b66339a3cb1fa123c9c049bdffc69ff1a..577a56cb2a93819410cf82932d1bf54c85ba3858 100644 (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 */
 }