diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/prompt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/prompt.c b/Src/prompt.c index ee77c8bc8..29e006e0e 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -920,6 +920,7 @@ addbufspc(int need) if(need & 255) need = (need | 255) + 1; bv->buf = realloc(bv->buf, bv->bufspc += need); + memset(bv->buf + bv->bufspc - need, 0, need); bv->bp = bv->buf + bo; if(bo1 != -1) bv->bp1 = bv->buf + bo1; |