summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-03-08 19:33:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-03-08 19:33:13 +0000
commit9da7b357c9c9becd8376cab9e337676cf60e2959 (patch)
treee069dbf9352efb29927227d7551edaf5f43b8306 /regress/sys
parentb8fd8d26d265ed4d343887b806d6a41cbb2817eb (diff)
format string mishandling
Diffstat (limited to 'regress/sys')
-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");