summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-08-22 14:24:45 +0200
committerunknown <serg@serg.mylan>2004-08-22 14:24:45 +0200
commit83e3d3f9a3ab6888292b8bcb15e0f77f00249289 (patch)
tree6265f70b7ad28888d20b19f0e78669c4aabeb77f /cmd-line-utils
parentc5677d9a3e3acedfd8c7d32576c5cd1897f16c6d (diff)
parentdcf98760aedfebd631e786d2d23fd28fcfea77d9 (diff)
downloadmariadb-git-83e3d3f9a3ab6888292b8bcb15e0f77f00249289.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/libedit/history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-line-utils/libedit/history.c b/cmd-line-utils/libedit/history.c
index 457c8f4a768..bae50787b94 100644
--- a/cmd-line-utils/libedit/history.c
+++ b/cmd-line-utils/libedit/history.c
@@ -647,7 +647,7 @@ history_save(History *h, const char *fname)
for (retval = HLAST(h, &ev);
retval != -1;
retval = HPREV(h, &ev), i++) {
- len = strlen(ev.str) * 4;
+ len = strlen(ev.str) * 4 + 1;
if (len >= max_size) {
max_size = (len + 1023) & ~1023;
ptr = h_realloc(ptr, max_size);