Przeglądaj źródła

Fix formatting.

* src/agent.c (scute_agent_get_random): Use '%zu'.

--
'%lu' is wrong on some arch where size_t is unsigned int.
Since we use gpgrt_snprintf, we can depend on the '%z' feature.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
NIIBE Yutaka 8 lat temu
rodzic
commit
e4bcc781fe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/agent.c

+ 1 - 1
src/agent.c

@@ -1331,7 +1331,7 @@ scute_agent_get_random (unsigned char *data, size_t len)
     gpg_error_t err;
     struct random_request request;
 
-    snprintf (command, sizeof(command), "SCD RANDOM %lu", len);
+    snprintf (command, sizeof(command), "SCD RANDOM %zu", len);
 
     request.buffer = data;
     request.len = len;