summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx
index cae8fbe2e7a9..b73c3e8841d3 100644
--- a/extensions/source/nsplugin/source/npshell.cxx
+++ b/extensions/source/nsplugin/source/npshell.cxx
@@ -708,7 +708,7 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
char* pfilename = NULL;
if (NULL != (pfilename = strrchr(url, '/')))
{
- strncat(filename, pfilename+1, 1024);
+ strncat(filename, pfilename+1, 1023);
}
else
{