about summary refs log tree commit diff stats
path: root/src/LYKeymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYKeymap.c')
-rw-r--r--src/LYKeymap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LYKeymap.c b/src/LYKeymap.c
index a1b522e9..7adb9b5d 100644
--- a/src/LYKeymap.c
+++ b/src/LYKeymap.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYKeymap.c,v 1.84 2013/01/04 00:04:03 tom Exp $ */
+/* $LynxId: LYKeymap.c,v 1.85 2013/05/03 23:07:29 tom Exp $ */
 #include <HTUtils.h>
 #include <LYUtils.h>
 #include <LYGlobalDefs.h>
@@ -1170,7 +1170,7 @@ char *LYKeycodeToString(int c,
     for (n = 0; n < TABLESIZE(named_keys); n++) {
 	if (named_keys[n].key == c) {
 	    named = TRUE;
-	    strcpy(buf, named_keys[n].name);
+	    LYStrNCpy(buf, named_keys[n].name, sizeof(buf) - 1);
 	    break;
 	}
     }
@@ -1259,7 +1259,7 @@ static char *pretty_html(int c)
 	    for (n = 0; n < TABLESIZE(table); n++) {
 		if (c == table[n].code) {
 		    found = TRUE;
-		    strcpy(dst, table[n].name);
+		    LYStrNCpy(dst, table[n].name, sizeof(dst) - 1);
 		    adj += (int) strlen(dst) - 1;
 		    dst += (int) strlen(dst);
 		    break;