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:
@@ -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
|
||||
|
||||
11
databases/sqlite3/files/patch-src_shell.c
Normal file
11
databases/sqlite3/files/patch-src_shell.c
Normal 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,"'");
|
||||
Reference in New Issue
Block a user