summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-07-19 11:51:14 +0300
committerJan Holesovsky <kendy@collabora.com>2018-11-08 09:14:34 +0100
commit4fe5abbe2a5a71885b343c1399cca0fdd875e7ac (patch)
tree15044831c0e710d23496f66391b5abb92dd36b71 /include
parent0275e44d62ec53ceb6e6640977d1a730ae9163b6 (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> (cherry picked from commit efe42fca7c386340575088ecf94952f3ba0447de)
Diffstat (limited to 'include')
-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 91c30729c7cc..5c600b5022bf 100644
--- a/include/LibreOfficeKit/LibreOfficeKitInit.h
+++ b/include/LibreOfficeKit/LibreOfficeKitInit.h
@@ -201,7 +201,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);