about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2015-12-17 01:38:55 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2015-12-17 01:38:55 -0500
commit23f95f50e6b05b7c313f3ccf879aca3b03799c0c (patch)
tree5933378e28e1f1b7b29d72acfdf38fa7909206a8 /src
parent70936d8b534d326e6b7bdde5d28fa839a6a33986 (diff)
downloadlynx-snapshots-23f95f50e6b05b7c313f3ccf879aca3b03799c0c.tar.gz
snapshot of project "lynx", label v2-8-9dev_6p
Diffstat (limited to 'src')
-rw-r--r--src/LYKeymap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/LYKeymap.c b/src/LYKeymap.c
index ccdf8826..4d24983d 100644
--- a/src/LYKeymap.c
+++ b/src/LYKeymap.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYKeymap.c,v 1.117 2015/12/14 00:13:39 Axel.Beckert Exp $ */
+/* $LynxId: LYKeymap.c,v 1.118 2015/12/17 01:27:51 tom Exp $ */
 #include <HTUtils.h>
 #include <LYUtils.h>
 #include <LYGlobalDefs.h>
@@ -852,7 +852,9 @@ static char *pretty_html(int c)
 	    for (n = 0; n < TABLESIZE(table); n++) {
 		if (c == table[n].code) {
 		    found = TRUE;
-		    LYStrNCpy(dst, table[n].name, sizeof(buf) - (dst - buf) - 1);
+		    LYStrNCpy(dst,
+			      table[n].name,
+			      sizeof(buf) - (size_t) ((dst - buf) - 1));
 		    adj += (int) strlen(dst) - 1;
 		    dst += (int) strlen(dst);
 		    break;