From 82e36686b3e23d43697dc1dbd7c5960933982440 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Tue, 8 Jan 2008 13:11:55 +0000 Subject: strncpy->strlcpy --- ext/mysqlnd/mysqlnd_loaddata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_loaddata.c') 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); } -- cgit v1.2.1