diff options
author | drh <> | 2023-03-20 10:43:52 +0000 |
---|---|---|
committer | drh <> | 2023-03-20 10:43:52 +0000 |
commit | f3ddaaa89a12d4431461bfdb3c35c74341ed3c65 (patch) | |
tree | 66722034bb9ce118ee67dbd1ef159cba7470a794 /src | |
parent | 6263cefcf5d236f8d1ed1a6b997ed858b6c8dc4b (diff) | |
download | sqlite-f3ddaaa89a12d4431461bfdb3c35c74341ed3c65.tar.gz sqlite-f3ddaaa89a12d4431461bfdb3c35c74341ed3c65.zip |
Back out the extra margin added to the input buffer of the CLI, as it is not
needed.
FossilOrigin-Name: ac8d1e5de5da35fa93c3f9241a7817285920431c66f4e4593d4d5c2db9f2b960
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); } |