[Libreoffice-commits] core.git: extensions/source
Julien Nabet
serval2412 at yahoo.fr
Sat Feb 23 13:55:14 PST 2013
extensions/source/nsplugin/source/npshell.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bdace7b2aaff034f4c3649bcbd57664b81cb28ab
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Feb 23 22:52:48 2013 +0100
coverity#982145 Buffer not null terminated
Change-Id: I5dd0050a0fbb5918da2d863998a7f24d9b144780
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx
index cba9139..f476d1c 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
More information about the Libreoffice-commits
mailing list