summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_loaddata.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-01-23 19:09:33 +0000
committerAndrey Hristov <andrey@php.net>2008-01-23 19:09:33 +0000
commit69f4a40d99b09a0826d5a23bf0e2f30ecec12950 (patch)
tree49019d5ed2cb218d0f479ebd0cc02c26e16804fd /ext/mysqlnd/mysqlnd_loaddata.c
parentb9dcdd409d3d217c0533667d48b7eb55f6e6018d (diff)
downloadphp-git-69f4a40d99b09a0826d5a23bf0e2f30ecec12950.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);
}