mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-07 00:42:07 +01:00
26 lines
830 B
Diff
26 lines
830 B
Diff
From 116e735d39c66f582f1f0ed38fa9a1dca946661e Mon Sep 17 00:00:00 2001
|
|
From: Daniel Stenberg <daniel@haxx.se>
|
|
Date: Fri, 5 Jun 2020 23:03:04 +0200
|
|
Subject: [PATCH] server/util: fix logmsg format using curl_off_t argument
|
|
|
|
... this caused segfaults on armv7.
|
|
|
|
Regression added in dd0365d560aea5a (7.70.0)
|
|
---
|
|
tests/server/util.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/server/util.c b/tests/server/util.c
|
|
index 75f3cb1b663..414d7194ff6 100644
|
|
--- a/tests/server/util.c
|
|
+++ b/tests/server/util.c
|
|
@@ -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 */
|
|
}
|
|
|