diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index 8e2ad1cb2..199a6df9d 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -11466,9 +11466,9 @@ static int process_input(ShellState *p){ } /* No single-line dispositions remain; accumulate line(s). */ nLine = strlen(zLine); - if( nSql+nLine+8>=nAlloc ){ + if( nSql+nLine+2>=nAlloc ){ /* Grow buffer by half-again increments when big. */ - nAlloc = nSql+(nSql>>1)+nLine+104; + nAlloc = nSql+(nSql>>1)+nLine+100; zSql = realloc(zSql, nAlloc); shell_check_oom(zSql); } |