cvs: php4 /ext/pgsql pgsql.c
| From: | Yasuo Ohgaki | Date: | Wed, 02 Oct 2002 06:30:41 +0000 |
| Subject: | cvs: php4 /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14397@lists.php.net to get a copy of this message | ||
yohgaki Wed Oct 2 02:30:41 2002 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
Fixed pg_escape_typea()
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.229 php4/ext/pgsql/pgsql.c:1.230
--- php4/ext/pgsql/pgsql.c:1.229 Wed Oct 2 02:22:52 2002
+++ php4/ext/pgsql/pgsql.c Wed Oct 2 02:30:40 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.229 2002/10/02 06:22:52 yohgaki Exp $ */
+/* $Id: pgsql.c,v 1.230 2002/10/02 06:30:40 yohgaki Exp $ */
#include <stdlib.h>
@@ -2732,11 +2732,11 @@
return;
}
- to = (char *)php_pgsql_unescape_bytea((unsigned char*)from, from_len);
+ to = (char *)php_pgsql_unescape_bytea((unsigned char*)from, &to_len);
if (!to) {
RETURN_FALSE;
}
- RETVAL_STRINGL(to, to_len-1, 1); /* to_len includes addtional '\0' */
+ RETVAL_STRINGL(to, to_len, 1);
free(to);
}
/* }}} */