Author: turnstep
Date: Sat Mar  1 18:15:03 2008
New Revision: 10861

Modified:
   DBD-Pg/trunk/Changes
   DBD-Pg/trunk/dbdimp.c

Log:
Apply patch from Alexey Tourbin to fix bad char count in Renew, per bug 33738.


Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes        (original)
+++ DBD-Pg/trunk/Changes        Sat Mar  1 18:15:03 2008
@@ -4,6 +4,8 @@
 
        - Fixed strlen problems in dbdimp.c (CPAN bug #33737)
                [Alexey Tourbin]
+       - Fixed char count in Renew() (CPAN bug #33738)
+               [Alexey Tourbin]
 
 2.2.0 Released February 27, 2008 (subversion r10849)
 

Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c       (original)
+++ DBD-Pg/trunk/dbdimp.c       Sat Mar  1 18:15:03 2008
@@ -2769,7 +2769,7 @@
                                currph->quotedlen = 7;
                        }
                        else if (currph->iscurrent) {
-                               Renew(currph->quoted, 8, char); /* freed in 
dbd_st_destroy */
+                               Renew(currph->quoted, 18, char); /* freed in 
dbd_st_destroy */
                                strncpy(currph->quoted, "CURRENT_TIMESTAMP", 
18);
                                currph->quotedlen = 17;
                        }

Reply via email to