summaryrefslogtreecommitdiff
path: root/dist/odbc/sqlite3odbc.patch
blob: 65c223c63b7c21a630d71d6eb3ef0f93c3ab4eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/sqlite3odbc.c     Sun Dec  8 15:19:27 2013 
+++ b/sqlite3odbc.c     Fri Mar 28 11:59:54 2014 
@@ -401,6 +401,7 @@
 #define snprintf    _snprintf
 #define strcasecmp  _stricmp
 #define strncasecmp _strnicmp
+#define strtoll     _strtoi64
 
 static HINSTANCE NEAR hModule;	/* Saved module handle for resources */
 
@@ -13916,7 +13916,7 @@
 		dlen -= 2;
 		dp += 2;
 		dlen = dlen / 2;
-		s->bincache = bin = xmalloc(dlen);
+		s->bincache = bin = xmalloc(dlen + 1);
 		if (!bin) {
 		    return nomem(s);
 		}