diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-10 11:45:36 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-10 22:11:26 +0200 |
commit | 73421a8f09e44446605b92fcc28a54f57d50f5b5 (patch) | |
tree | ab2778bd282960c54947c35c3b2c45db3a77cb8f /extensions | |
parent | 2eb750cdd67710eb10292654a6eda8415d528765 (diff) |
coverity#1224983 out of bound
Change-Id: I58cf35e8729110f2488bf08d6cadc1ec428298cf
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/nsplugin/source/npshell.cxx | 2 |
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 { |