aports/main/curl/pidfile.patch
Milan P. Stanić 0fc214f6ad main/curl: fix tests
add patch sent to me from upstream author which fixes regression
introduced upstream
2020-06-06 18:22:46 +00:00

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 */
}