]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use Windows-compatible format strings in tor-print-ed-signing-cert.c
authorteor <teor@torproject.org>
Tue, 31 Jul 2018 01:19:41 +0000 (11:19 +1000)
committerteor <teor@torproject.org>
Tue, 31 Jul 2018 01:21:28 +0000 (11:21 +1000)
Fixes bug 26986; bugfix on master.

changes/bug26986 [new file with mode: 0644]
src/tools/tor-print-ed-signing-cert.c

diff --git a/changes/bug26986 b/changes/bug26986
new file mode 100644 (file)
index 0000000..a3ab9ff
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (compilation):
+    - Use Windows-compatible format strings in tor-print-ed-signing-cert.c.
+      Fixes bug 26986; bugfix on master.
index ca53e34d5de5fb254d2f50c21000ca1bf0a11194..0f64059d846c263d6df4cb577fccaaef03c73e57 100644 (file)
@@ -7,6 +7,7 @@
 #include <time.h>
 
 #include "ed25519_cert.h"
+#include "lib/cc/torint.h"  /* TOR_PRIdSZ */
 #include "lib/crypt_ops/crypto_format.h"
 #include "lib/malloc/malloc.h"
 
@@ -49,8 +50,8 @@ main(int argc, char **argv)
 
   ssize_t parsed = ed25519_cert_parse(&cert, certbuf, cert_body_len);
   if (parsed <= 0) {
-    fprintf(stderr, "ed25519_cert_parse failed with return value %zd\n",
-            parsed);
+    fprintf(stderr, "ed25519_cert_parse failed with return value %" TOR_PRIdSZ
+                    "\n", parsed);
     return -5;
   }