diff options
Diffstat (limited to 'src/keys.c')
-rw-r--r-- | src/keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) |