1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a bug in the -separator command-line option. (CVS 351)

FossilOrigin-Name: 593c986f694b14839b2a2ed1da4da468c53fefa5
This commit is contained in:
drh
2002-01-22 12:39:24 +00:00
parent a2e00042a1
commit 7613bfae56
4 changed files with 12 additions and 10 deletions

View File

@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.42 2002/01/15 18:39:45 drh Exp $
** $Id: shell.c,v 1.43 2002/01/22 12:39:24 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@ -866,7 +866,7 @@ int main(int argc, char **argv){
data.mode = MODE_Line;
argc--;
argv++;
}else if( argc>=3 && strcmp(argv[0],"-separator")==0 ){
}else if( argc>=3 && strcmp(argv[1],"-separator")==0 ){
sprintf(data.separator,"%.*s",(int)sizeof(data.separator)-1,argv[2]);
argc -= 2;
argv += 2;