summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo_int.h
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-08-07 16:10:34 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-08-07 16:10:34 +0000
commit37c18f5ebe5cac05f31ad18a11c7f8f4a38e6935 (patch)
treed88d59c4b218ac3ddc8592929fa6079ba650ef50 /ext/pdo/php_pdo_int.h
parent2449c4169855c39efddd3311eb634da78cf23eba (diff)
downloadphp-git-37c18f5ebe5cac05f31ad18a11c7f8f4a38e6935.tar.gz
Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
static string copies
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 62b3bb9188..774cd76f14 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 { \
- strncpy(dbh->error_code, PDO_ERR_NONE, sizeof(PDO_ERR_NONE)); \
+ strlcpy(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); \