Commit c2d207e8 authored by unknown's avatar unknown
Browse files

resurrect fix for

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

parent 99538ee3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;