Kaydet (Commit) efe42fca authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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: 's avatarTor Lillqvist <tml@collabora.com>
üst 087b1fc9
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment