Problem: string length wrong in get_last_inserted_save()
(after v9.1.1222)
Solution: when removing trailing ESC, also decrease the string length
(Christ van Willegen)
closes: #16961
Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
return NULL;
if (insert.length > 0 && s[insert.length - 1] == ESC) // remove trailing ESC
- s[insert.length - 1] = NUL;
+ s[--insert.length] = NUL;
return s;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1263,
/**/
1262,
/**/