소스 검색

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 9 년 전
부모
커밋
e4bcc781fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;