include/LibreOfficeKit/LibreOfficeKitInit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit efe42fca7c386340575088ecf94952f3ba0447de Author: Tor Lillqvist <[email protected]> AuthorDate: Thu Jul 19 11:51:14 2018 +0300 Commit: Tor Lillqvist <[email protected]> CommitDate: Thu Jul 19 12:36:44 2018 +0200 Avoid gcc: "specified bound depends on the length of the source argument" Just use memcpy(). Change-Id: Icb705acb6c12baf28684c763a77da7abc514ea6d Reviewed-on: https://gerrit.libreoffice.org/57714 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <[email protected]> diff --git a/include/LibreOfficeKit/LibreOfficeKitInit.h b/include/LibreOfficeKit/LibreOfficeKitInit.h index 103c11be926c..687090a58b9f 100644 --- a/include/LibreOfficeKit/LibreOfficeKitInit.h +++ b/include/LibreOfficeKit/LibreOfficeKitInit.h @@ -200,7 +200,7 @@ static void *lok_dlopen( const char *install_path, char ** _imp_lib ) return NULL; } - strncpy(imp_lib, install_path, imp_lib_size); + memcpy(imp_lib, install_path, partial_length); extendUnoPath(install_path); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
