summaryrefslogtreecommitdiffstats
path: root/src/keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keys.c')
-rw-r--r--src/keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keys.c b/src/keys.c
index 180b80d..b885b63 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -444,7 +444,7 @@ keys_format_label (char *key, int keylen)
bzero (fmtkey, sizeof (fmtkey));
if (len == 0)
- (void)snprintf (fmtkey, sizeof (fmtkey), "?");
+ (void)strncpy (fmtkey, "?", sizeof (fmtkey));
else if (len <= keylen)
{
for (i = 0; i < keylen - len; i++)