diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-05-28 23:33:13 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-05-28 23:33:13 +0000 |
| commit | 3821f0c45acc490e6b5d80494f74798049e9cd15 (patch) | |
| tree | 9d25df9de8d1c974f4e5201984bb98d2d6835732 /ext/pdo_firebird | |
| parent | de573ba7ff35e1d9f338e574067997745db54352 (diff) | |
| download | php-git-3821f0c45acc490e6b5d80494f74798049e9cd15.tar.gz | |
MFB
Diffstat (limited to 'ext/pdo_firebird')
| -rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index 6c9cb9bbe5..3ea1428a19 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -655,8 +655,7 @@ static int firebird_stmt_set_attribute(pdo_stmt_t *stmt, long attr, zval *val TS RECORD_ERROR(stmt); return 0; } - strncpy(S->name, Z_STRVAL_P(val), sizeof(S->name)); - S->name[sizeof(S->name)] = 0; + strlcpy(S->name, Z_STRVAL_P(val), sizeof(S->name)); break; } return 1; |
