diff options
-rw-r--r-- | CHANGES | 6 | ||||
-rw-r--r-- | src/LYKeymap.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/CHANGES b/CHANGES index d0be0d1e..df559d20 100644 --- a/CHANGES +++ b/CHANGES @@ -1,9 +1,11 @@ --- $LynxId: CHANGES,v 1.823 2015/12/13 23:17:38 tom Exp $ +-- $LynxId: CHANGES,v 1.826 2015/12/14 00:14:24 Axel.Beckert Exp $ =============================================================================== Changes since Lynx 2.8 release =============================================================================== 2015-12-13 (2.8.9dev.7) +* fix some typos found by lintian -Axel Beckert +* correct buffer size in pretty_html() function of LYKeymap.c -TG * add support for some HTML5 elements -Kihara Hideto Using this change, you can jump to <section id="speakers">. (The addition in src{0,1}_HTMLDTD.txt is copied from DIV.) @@ -4262,7 +4264,7 @@ recently, FreeBSD 4.1, NetBSD 1.5 and OpenBSD 2.8 (curses/ncurses). not needed or wanted) -Victor Schneider * fix Debian bug #65151: "<> in javascript causes premature </script>" (reported by H Nanosecond <aldomel@ix.netcom.com>) -KW -* replaced all occurences of 'black' with 'default' in /samples/mild-colors.lss +* replaced all occurrences of 'black' with 'default' in /samples/mild-colors.lss to make it more reasonable on terminals with non-black background -VH * modify color-style initialization to avoid passing -1's as attribute codes which would happen if the lynx.lss file was not found, or if not all styles diff --git a/src/LYKeymap.c b/src/LYKeymap.c index a457c835..ccdf8826 100644 --- a/src/LYKeymap.c +++ b/src/LYKeymap.c @@ -1,4 +1,4 @@ -/* $LynxId: LYKeymap.c,v 1.115 2015/10/07 23:24:24 tom Exp $ */ +/* $LynxId: LYKeymap.c,v 1.117 2015/12/14 00:13:39 Axel.Beckert Exp $ */ #include <HTUtils.h> #include <LYUtils.h> #include <LYGlobalDefs.h> @@ -424,10 +424,10 @@ static Kcmd revmap[] = "search within the current document"), DATA( LYK_PREV, "PREV", - "search for the previous occurence"), + "search for the previous occurrence"), DATA( LYK_NEXT, "NEXT", - "search for the next occurence"), + "search for the next occurrence"), DATA( LYK_COMMENT, "COMMENT", "send a comment to the author of the current document"), @@ -852,7 +852,7 @@ 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(dst) - 1); + LYStrNCpy(dst, table[n].name, sizeof(buf) - (dst - buf) - 1); adj += (int) strlen(dst) - 1; dst += (int) strlen(dst); break; |