extensions/source/nsplugin/source/npshell.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit bdace7b2aaff034f4c3649bcbd57664b81cb28ab Author: Julien Nabet <serval2...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits