summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_loaddata.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-01-23 19:11:28 +0000
committerAndrey Hristov <andrey@php.net>2008-01-23 19:11:28 +0000
commitc52b63ea1d629850e51d05c1b0de126e8b9c4308 (patch)
tree99b1e944029b8a10a065244a9e25c5d407724061 /ext/mysqlnd/mysqlnd_loaddata.c
parent0095544c4d276667acc9a4100c8268d619ee1f9f (diff)
downloadphp-git-c52b63ea1d629850e51d05c1b0de126e8b9c4308.tar.gz
Merge with internal version
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 02166ca210..2064aa39b1 100644
--- a/ext/mysqlnd/mysqlnd_loaddata.c
+++ b/ext/mysqlnd/mysqlnd_loaddata.c
@@ -118,7 +118,7 @@ int mysqlnd_local_infile_error(void *ptr, char *error_buf, uint error_buf_len TS
DBG_RETURN(info->error_no);
}
- strncpy(error_buf, "Unknown error", error_buf_len);
+ strlcpy(error_buf, "Unknown error", error_buf_len);
DBG_INF_FMT("no info, %d", CR_UNKNOWN_ERROR);
DBG_RETURN(CR_UNKNOWN_ERROR);
}