apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r265809 - /apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
Date Fri, 02 Sep 2005 00:23:00 GMT
Author: niq
Date: Thu Sep  1 17:22:56 2005
New Revision: 265809

URL: http://svn.apache.org/viewcvs?rev=265809&view=rev
Log:
Fix EscapeString (Patch from Brian J. France)

Modified:
    apr/apr-util/trunk/dbd/apr_dbd_pgsql.c

Modified: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/dbd/apr_dbd_pgsql.c?rev=265809&r1=265808&r2=265809&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_pgsql.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_pgsql.c Thu Sep  1 17:22:56 2005
@@ -221,7 +221,7 @@
                                     apr_dbd_t *sql)
 {
     size_t len = strlen(arg);
-    char *ret = apr_palloc(pool, len + 1);
+    char *ret = apr_palloc(pool, 2*len + 2);
     PQescapeString(ret, arg, len);
     return ret;
 }



Mime
View raw message