freebsd-ports/databases/sqlite3/files/patch-src_shell.c
Ruslan Makhmatkhanov 29befa0025 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)
2011-12-22 18:10:22 +00:00

11 lines
401 B
C

--- 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,"'");