aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/p5-DBD-SQLite/Makefile1
-rw-r--r--databases/p5-DBD-SQLite/files/patch-dbdimp.c22
-rw-r--r--databases/p5-DBD-SQLite2/Makefile1
-rw-r--r--databases/p5-DBD-SQLite2/files/patch-dbdimp.c22
4 files changed, 46 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) {
diff --git a/databases/p5-DBD-SQLite2/Makefile b/databases/p5-DBD-SQLite2/Makefile
index 4035a485a937..dd75f290db03 100644
--- a/databases/p5-DBD-SQLite2/Makefile
+++ b/databases/p5-DBD-SQLite2/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-SQLite2/files/patch-dbdimp.c b/databases/p5-DBD-SQLite2/files/patch-dbdimp.c
new file mode 100644
index 000000000000..ac2081868ac1
--- /dev/null
+++ b/databases/p5-DBD-SQLite2/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) {