Add patch that fixes blobs handling in interactive mode.

Looks like this issue is known by upstream since 2009,
but never was fixed in any release.

PR:             162650
Submitted by:   Valentin Davydov <cs at soi.spb.ru>
Approved by:    maintainer, novel (mentor, implicit)
This commit is contained in:
Ruslan Makhmatkhanov
2011-12-22 18:10:22 +00:00
parent 0495f52d73
commit 29befa0025
2 changed files with 12 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
PORTNAME= sqlite3
PORTVERSION= 3.7.9
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.sqlite.org/ http://www2.sqlite.org/
DISTNAME= sqlite-src-3070900

View File

@@ -0,0 +1,11 @@
--- src/shell.c.orig 2011-11-01 16:31:18.000000000 +0400
+++ src/shell.c 2011-11-10 22:45:11.000000000 +0400
@@ -490,7 +490,7 @@
*/
static void output_hex_blob(FILE *out, const void *pBlob, int nBlob){
int i;
- char *zBlob = (char *)pBlob;
+ unsigned char *zBlob = (unsigned char *)pBlob;
fprintf(out,"X'");
for(i=0; i<nBlob; i++){ fprintf(out,"%02x",zBlob[i]); }
fprintf(out,"'");