summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-02-23 22:52:48 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-02-23 22:53:11 +0100
commitbdace7b2aaff034f4c3649bcbd57664b81cb28ab (patch)
treea5bfd8d7f884c51eae90f429a8722584a5961316 /extensions
parent613221bde1744265c336c2b5f2ade0bfb9b22d16 (diff)
coverity#982145 Buffer not null terminated
Change-Id: I5dd0050a0fbb5918da2d863998a7f24d9b144780
Diffstat (limited to 'extensions')
-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 cba9139e2bef..f476d1c2b96c 100644
--- a/extensions/source/nsplugin/source/npshell.cxx
+++ b/extensions/source/nsplugin/source/npshell.cxx
@@ -720,7 +720,7 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
}
else // from network, on windows, fname is c:\abc123
{
- strncpy(localPathNew, fname, sizeof(localPathNew));
+ strncpy(localPathNew, fname, NPP_PATH_MAX - 1);
char* pRandomFilename = NULL;
#ifdef UNIX