diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-23 22:52:48 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-23 22:53:11 +0100 |
commit | bdace7b2aaff034f4c3649bcbd57664b81cb28ab (patch) | |
tree | a5bfd8d7f884c51eae90f429a8722584a5961316 | |
parent | 613221bde1744265c336c2b5f2ade0bfb9b22d16 (diff) |
coverity#982145 Buffer not null terminated
Change-Id: I5dd0050a0fbb5918da2d863998a7f24d9b144780
-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 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 |