summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo_int.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-08-07 23:46:00 +0000
committerIlia Alshanetsky <iliaa@php.net>2011-08-07 23:46:00 +0000
commit34f08a371539fa8103a9872616c1281de33ba1f8 (patch)
tree427abb27ca9ca62e3080876e249765f7542486a6 /ext/pdo/php_pdo_int.h
parent04b575f409eb305c12df4e447bed4c147d7237f1 (diff)
downloadphp-git-34f08a371539fa8103a9872616c1281de33ba1f8.tar.gz
Fixes for variety of issues identified by coverity scan
Diffstat (limited to 'ext/pdo/php_pdo_int.h')
-rwxr-xr-xext/pdo/php_pdo_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/php_pdo_int.h b/ext/pdo/php_pdo_int.h
index 774cd76f14..62b3bb9188 100755
--- a/ext/pdo/php_pdo_int.h
+++ b/ext/pdo/php_pdo_int.h
@@ -58,7 +58,7 @@ extern pdo_driver_t *pdo_find_driver(const char *name, int namelen);
extern void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC);
#define PDO_DBH_CLEAR_ERR() do { \
- strlcpy(dbh->error_code, PDO_ERR_NONE, sizeof(PDO_ERR_NONE)); \
+ strncpy(dbh->error_code, PDO_ERR_NONE, sizeof(PDO_ERR_NONE)); \
if (dbh->query_stmt) { \
dbh->query_stmt = NULL; \
zend_objects_store_del_ref(&dbh->query_stmt_zval TSRMLS_CC); \