summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-07-19 11:51:14 +0300
committerTor Lillqvist <tml@collabora.com>2018-07-19 12:36:44 +0200
commitefe42fca7c386340575088ecf94952f3ba0447de (patch)
treefc5a397641cb42c95cc8e34222ab6c299b720699 /include/LibreOfficeKit
parent087b1fc95a1d500e75de3ddc357298c9f93bf7b5 (diff)
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@collabora.com>
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitInit.h2
1 files changed, 1 insertions, 1 deletions
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);