summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-03-08 19:33:12 +0000
committerderaadt <deraadt@openbsd.org>2017-03-08 19:33:12 +0000
commit9be3be63a592c35ed46d93b842b18a3fd605929b (patch)
treed9acd213e25df78d765f5e274e888cf98c4a5179
parentwarning cleanups; ok guenther (diff)
downloadwireguard-openbsd-9be3be63a592c35ed46d93b842b18a3fd605929b.tar.xz
wireguard-openbsd-9be3be63a592c35ed46d93b842b18a3fd605929b.zip
format string mishandling
-rw-r--r--regress/sys/crypto/cmac/cmac_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/sys/crypto/cmac/cmac_test.c b/regress/sys/crypto/cmac/cmac_test.c
index 78495f0ede4..bd165f22f3d 100644
--- a/regress/sys/crypto/cmac/cmac_test.c
+++ b/regress/sys/crypto/cmac/cmac_test.c
@@ -26,7 +26,7 @@ print_hex(char *str, unsigned char *buf, int len)
int i;
for ( i=0; i<len; i++ ) {
- if ( (i % 16) == 0 && i != 0 ) printf(str);
+ if ( (i % 16) == 0 && i != 0 ) printf("%s", str);
printf("%02x", buf[i]);
if ( (i % 4) == 3 ) printf(" ");
if ( (i % 16) == 15 ) printf("\n");