blob: 02f16ef5d18ce406c861e51ead025b86cd69f137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Author: Sven Joachim <svenjoac@gmx.de>
Description: Fix an infinite loop in tic on invalid input
Modify tic to exit if it cannot remove a conflicting name, because
treating that as a partial success can cause an infinite loop in
use-resolution.
.
Fix cherry-picked from upstream patchlevel 20191019.
Bug: https://lists.gnu.org/archive/html/bug-ncurses/2019-10/msg00050.html
Forwarded: not-needed
Last-Update: 2019-11-02
---
ncurses/tinfo/comp_parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/ncurses/tinfo/comp_parse.c
+++ b/ncurses/tinfo/comp_parse.c
@@ -180,11 +180,11 @@ remove_collision(char *n1, char *n2)
++qend;
while ((*qstart++ = *qend++) != '\0') ;
fprintf(stderr, "...now\t%s\n", p2);
+ removed = TRUE;
} else {
fprintf(stderr, "Cannot remove alias '%.*s'\n",
(int) (qend - qstart), qstart);
}
- removed = TRUE;
break;
}
}
|