[Libreoffice-commits] core.git: include/LibreOfficeKit
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jul 19 10:37:05 UTC 2018
include/LibreOfficeKit/LibreOfficeKitInit.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit efe42fca7c386340575088ecf94952f3ba0447de
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Jul 19 11:51:14 2018 +0300
Commit: Tor Lillqvist <tml at collabora.com>
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 <tml at collabora.com>
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);
More information about the Libreoffice-commits
mailing list