diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-02-24 18:00:56 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-02-24 18:00:56 +0000 |
| commit | 9783f5f1f3dd69e06fc5ede7fb6715957bc43955 (patch) | |
| tree | 66a86692ce4db1eeb97a0b75685305462c55100b /ext/interbase | |
| parent | 9651aeaf7862f6c1e161dcf23b4d506c103255bb (diff) | |
| download | php-git-9783f5f1f3dd69e06fc5ede7fb6715957bc43955.tar.gz | |
strncpy() -> strlcpy()
Diffstat (limited to 'ext/interbase')
| -rw-r--r-- | ext/interbase/ibase_query.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c index 3de5879688..bb2bfe6184 100644 --- a/ext/interbase/ibase_query.c +++ b/ext/interbase/ibase_query.c @@ -603,9 +603,8 @@ static int _php_ibase_bind_array(zval *val, char *buf, unsigned long buf_size, / break; default: convert_to_string(val); - strncpy(buf, Z_STRVAL_P(val), array->el_size); - buf[array->el_size-1] = '\0'; - } + strlcpy(buf, Z_STRVAL_P(val), buf_size); + } } } return SUCCESS; |
