diff options
author | vva@eagle.mysql.r18.ru <> | 2004-08-25 00:26:53 +0500 |
---|---|---|
committer | vva@eagle.mysql.r18.ru <> | 2004-08-25 00:26:53 +0500 |
commit | 3d9444605597ec505c68304fd5aea37d44a0600b (patch) | |
tree | 72c8d3cf4f5f3dab4a2c849ae07934dc478427fa /cmd-line-utils | |
parent | 24b7ad8229cd71dca41191c7d73e36667d1340fa (diff) | |
download | mariadb-git-3d9444605597ec505c68304fd5aea37d44a0600b.tar.gz |
resurrect fix for
Bug #4696 segfault in cmd-line-utils/libedit/history.c:history_save()
(bundled libedit)
Diffstat (limited to 'cmd-line-utils')
-rw-r--r-- | cmd-line-utils/libedit/history.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |