summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-10-02 06:30:40 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-10-02 06:30:40 +0000
commit2300bddb9ccf001364c79126754ca0df5baae138 (patch)
tree82cbfa18375ac5d3ba2883144bd10a1a76b5fd7c /ext/pgsql/pgsql.c
parent520486e8b148af85bf11fa5e284f1a0e37e69ab4 (diff)
downloadphp-git-2300bddb9ccf001364c79126754ca0df5baae138.tar.gz
Fixed pg_escape_typea()
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 37137d258c..0d591fff98 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -2732,11 +2732,11 @@ PHP_FUNCTION(pg_unescape_bytea)
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);
}
/* }}} */