diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-25 07:34:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-25 07:34:18 +0000 |
commit | c427d9b1c8daba66d96a9a95c1889f0c58b42b14 (patch) | |
tree | efbd61821ca9a2e5c622f1bd8843f36592565d95 /usr.bin/mg/help.c | |
parent | 87bbbe7b43952169a3ba733b76986d19bb70156c (diff) |
snprintf makes me happy
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r-- | usr.bin/mg/help.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c index 9f320079dd2..c5432fbfa63 100644 --- a/usr.bin/mg/help.c +++ b/usr.bin/mg/help.c @@ -1,4 +1,4 @@ -/* $OpenBSD: help.c,v 1.14 2001/05/24 09:47:34 art Exp $ */ +/* $OpenBSD: help.c,v 1.15 2001/11/25 07:34:17 deraadt Exp $ */ /* * Help functions for Mg 2 @@ -137,7 +137,7 @@ showall(BUFFER *bp, KEYMAP *map, char *prefix) if (fun == rescan || fun == selfinsert) continue; keyname(buf, sizeof(buf), c); - sprintf(key, "%s%s ", prefix, buf); + snprintf(key, sizeof key, "%s%s ", prefix, buf); if (fun == NULL) { if (showall(bp, newmap, key) == FALSE) return FALSE; |