Commit c2d207e8 authored by unknown's avatar unknown

resurrect fix for

Bug #4696  	segfault in cmd-line-utils/libedit/history.c:history_save() 
(bundled libedit)

parent 99538ee3
......@@ -731,7 +731,7 @@ history_save(History *h, const char *fname)
len = strlen(ev.str) * 4 + 1;
if (len >= max_size) {
char *nptr;
max_size = (len + 1023) & 1023;
max_size = (len + 1023) & ~1023;
nptr = h_realloc(ptr, max_size);
if (nptr == NULL) {
i = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment