patch 8.0.1468: illegal memory access in del_bytes()
Problem: Illegal memory access in del_bytes().
Solution: Check for negative byte count. (Christian Brabandt, closes #2466)
diff --git a/src/message.c b/src/message.c
index 2114033..17a6633 100644
--- a/src/message.c
+++ b/src/message.c
@@ -761,7 +761,7 @@
void
iemsg(char_u *s)
{
- msg(s);
+ emsg(s);
#ifdef ABORT_ON_INTERNAL_ERROR
abort();
#endif
@@ -4993,7 +4993,7 @@
zero_padding = 0;
}
else
- {
+ {
/* Regular float number */
format[0] = '%';
l = 1;
@@ -5016,7 +5016,7 @@
format[l + 1] = NUL;
str_arg_l = sprintf(tmp, format, f);
- }
+ }
if (remove_trailing_zeroes)
{