summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_loaddata.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-01-08 13:11:55 +0000
committerAndrey Hristov <andrey@php.net>2008-01-08 13:11:55 +0000
commit82e36686b3e23d43697dc1dbd7c5960933982440 (patch)
treec34887af05404b126f4b556eb46e94208ce53fbe /ext/mysqlnd/mysqlnd_loaddata.c
parentb0b510f6e6c36d0067a5d34d5f254ab734a0f025 (diff)
downloadphp-git-82e36686b3e23d43697dc1dbd7c5960933982440.tar.gz
strncpy->strlcpy
Diffstat (limited to 'ext/mysqlnd/mysqlnd_loaddata.c')
-rw-r--r--ext/mysqlnd/mysqlnd_loaddata.c2
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);
}