aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-DBD-SQLite
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-06-11 14:22:57 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-06-11 14:22:57 +0000
commit40b7698be1bb9662c0f5a3b5b9383d668cf70cd1 (patch)
tree9945ad9f12d79c05cf87574e3e99108993f74a59 /databases/p5-DBD-SQLite
parentc2153c1e76055ff925c4b7e3353b57f2ddb1b800 (diff)
downloadports-40b7698be1bb9662c0f5a3b5b9383d668cf70cd1.tar.gz
ports-40b7698be1bb9662c0f5a3b5b9383d668cf70cd1.zip
Notes
Diffstat (limited to 'databases/p5-DBD-SQLite')
-rw-r--r--databases/p5-DBD-SQLite/Makefile1
-rw-r--r--databases/p5-DBD-SQLite/files/patch-dbdimp.c22
2 files changed, 23 insertions, 0 deletions
diff --git a/databases/p5-DBD-SQLite/Makefile b/databases/p5-DBD-SQLite/Makefile
index 4035a485a937..dd75f290db03 100644
--- a/databases/p5-DBD-SQLite/Makefile
+++ b/databases/p5-DBD-SQLite/Makefile
@@ -7,6 +7,7 @@
PORTNAME= DBD-SQLite
PORTVERSION= 0.31
+PORTREVISION= 1
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBD
diff --git a/databases/p5-DBD-SQLite/files/patch-dbdimp.c b/databases/p5-DBD-SQLite/files/patch-dbdimp.c
new file mode 100644
index 000000000000..ac2081868ac1
--- /dev/null
+++ b/databases/p5-DBD-SQLite/files/patch-dbdimp.c
@@ -0,0 +1,22 @@
+--- dbdimp.c.orig Sun Feb 15 02:36:38 2004
++++ dbdimp.c Fri Jun 11 22:32:17 2004
+@@ -1,4 +1,4 @@
+-/* $Id: dbdimp.c,v 1.44 2004/02/14 17:36:38 matt Exp $ */
++/* $Id: dbdimp.c,v 1.45 2004/03/16 19:08:22 matt Exp $ */
+
+ #include "SQLiteXS.h"
+
+@@ -294,8 +294,11 @@
+ char *
+ sqlite_decode(imp_dbh_t *imp_dbh, char *input, size_t *len)
+ {
+- char *ret = malloc(*len);
+- char *swit = ret;
++ char *ret;
++ char *swit;
++
++ New(1, ret, *len, char);
++ swit = ret;
+
+ while (*input) {
+ switch (*input) {