Index: src/shell.c ================================================================== --- src/shell.c +++ src/shell.c @@ -10,11 +10,11 @@ ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** -** $Id: shell.c,v 1.122 2005/02/23 12:35:41 drh Exp $ +** $Id: shell.c,v 1.123 2005/08/05 18:50:52 drh Exp $ */ #include #include #include #include @@ -1091,10 +1091,11 @@ azCol[i] = &z[nSep]; z += nSep-1; } } } + *z = 0; if( i+1!=nCol ){ fprintf(stderr,"%s line %d: expected %d columns of data but found %d\n", zFile, lineno, nCol, i+1); zCommit = "ROLLBACK"; break;