1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

resurrect fix for

Bug #4696  	segfault in cmd-line-utils/libedit/history.c:history_save() 
(bundled libedit)
This commit is contained in:
vva@eagle.mysql.r18.ru
2004-08-25 00:26:53 +05:00
parent 24b7ad8229
commit 3d94446055

View File

@ -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;