From 3d9444605597ec505c68304fd5aea37d44a0600b Mon Sep 17 00:00:00 2001 From: "vva@eagle.mysql.r18.ru" <> Date: Wed, 25 Aug 2004 00:26:53 +0500 Subject: resurrect fix for Bug #4696 segfault in cmd-line-utils/libedit/history.c:history_save() (bundled libedit) --- cmd-line-utils/libedit/history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-line-utils') diff --git a/cmd-line-utils/libedit/history.c b/cmd-line-utils/libedit/history.c index ad47a5572e4..0294734b9a3 100644 --- a/cmd-line-utils/libedit/history.c +++ b/cmd-line-utils/libedit/history.c @@ -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; -- cgit v1.2.1