diff options
author | Andrey Hristov <andrey@php.net> | 2008-01-08 13:11:55 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-01-08 13:11:55 +0000 |
commit | 82e36686b3e23d43697dc1dbd7c5960933982440 (patch) | |
tree | c34887af05404b126f4b556eb46e94208ce53fbe /ext/mysqlnd/mysqlnd_loaddata.c | |
parent | b0b510f6e6c36d0067a5d34d5f254ab734a0f025 (diff) | |
download | php-git-82e36686b3e23d43697dc1dbd7c5960933982440.tar.gz |
strncpy->strlcpy
Diffstat (limited to 'ext/mysqlnd/mysqlnd_loaddata.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_loaddata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_loaddata.c b/ext/mysqlnd/mysqlnd_loaddata.c index 5e4b508629..02166ca210 100644 --- a/ext/mysqlnd/mysqlnd_loaddata.c +++ b/ext/mysqlnd/mysqlnd_loaddata.c @@ -113,7 +113,7 @@ int mysqlnd_local_infile_error(void *ptr, char *error_buf, uint error_buf_len TS DBG_ENTER("mysqlnd_local_infile_error"); if (info) { - strncpy(error_buf, info->error_msg, error_buf_len); + strlcpy(error_buf, info->error_msg, error_buf_len); DBG_INF_FMT("have info, %d", info->error_no); DBG_RETURN(info->error_no); } |