17 lines
387 B
Diff
17 lines
387 B
Diff
|
From snapshot 6.1-20191012
|
||
|
|
||
|
diff --git a/progs/dump_entry.c b/progs/dump_entry.c
|
||
|
index d0e420ec..8a47084a 100644
|
||
|
--- a/progs/dump_entry.c
|
||
|
+++ b/progs/dump_entry.c
|
||
|
@@ -1136,7 +1136,8 @@ fmt_entry(TERMTYPE2 *tterm,
|
||
|
*d++ = '\\';
|
||
|
*d = ':';
|
||
|
} else if (*d == '\\') {
|
||
|
- *++d = *s++;
|
||
|
+ if ((*++d = *s++) == '\0')
|
||
|
+ break;
|
||
|
}
|
||
|
d++;
|
||
|
*d = '\0';
|