summaryrefslogtreecommitdiff
path: root/extensions/source/nsplugin/source/so_env.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/nsplugin/source/so_env.cxx')
-rw-r--r--extensions/source/nsplugin/source/so_env.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/nsplugin/source/so_env.cxx b/extensions/source/nsplugin/source/so_env.cxx
index a04b873b363a..9dac2488fcb6 100644
--- a/extensions/source/nsplugin/source/so_env.cxx
+++ b/extensions/source/nsplugin/source/so_env.cxx
@@ -256,7 +256,7 @@ int findReadSversion(void** aResult, int /*bWnt*/, const char* /*tag*/, const ch
/* .. now in $HOME */
#endif // LINUX
- sprintf(lnkFileName, "%s/.mozilla/plugins/libnpsoplugin%s", getenv("HOME"), SAL_DLLEXTENSION);
+ snprintf(lnkFileName, NPP_PATH_MAX - 1, "%s/.mozilla/plugins/libnpsoplugin%s", getenv("HOME"), SAL_DLLEXTENSION);
#ifdef LINUX
ssize_t len = readlink(lnkFileName, realFileName, NPP_PATH_MAX-1);
if (-1 == len)