1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines.

FossilOrigin-Name: b1b48be1cf55f3179eab8824cf5fee8100518845
This commit is contained in:
shaneh
2009-12-17 21:07:15 +00:00
parent d77f56efe5
commit 13b3602e1c
3 changed files with 8 additions and 7 deletions

View File

@@ -1212,6 +1212,7 @@ static char *local_getline(char *zPrompt, FILE *in){
while( zLine[n] ){ n++; }
if( n>0 && zLine[n-1]=='\n' ){
n--;
if( n>0 && zLine[n-1]=='\r' ) n--;
zLine[n] = 0;
eol = 1;
}