diff options
author | drh <drh@noemail.net> | 2012-04-24 12:12:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2012-04-24 12:12:57 +0000 |
commit | b202d70a8780f09d1e72474c693133fd0c75dbab (patch) | |
tree | 6f25f4a1ef7f1e36136bb87f2b5dbba321b1832d /src | |
parent | 98781237522aff95052d80b67d474dcebfb46167 (diff) | |
download | sqlite-b202d70a8780f09d1e72474c693133fd0c75dbab.tar.gz sqlite-b202d70a8780f09d1e72474c693133fd0c75dbab.zip |
Fix a sign-extension problem for BLOB output in ".insert" mode of the
command-line shell.
FossilOrigin-Name: 282f2a74c23aa3fca6087bdeaf5d961b4f5bbe47
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c index 34b72c4d6..73341fc3c 100644 --- a/src/shell.c +++ b/src/shell.c @@ -499,7 +499,7 @@ static void output_hex_blob(FILE *out, const void *pBlob, int nBlob){ int i; char *zBlob = (char *)pBlob; fprintf(out,"X'"); - for(i=0; i<nBlob; i++){ fprintf(out,"%02x",zBlob[i]); } + for(i=0; i<nBlob; i++){ fprintf(out,"%02x",zBlob[i]&0xff); } fprintf(out,"'"); } |