Kaydet (Commit) bdace7b2 authored tarafından Julien Nabet's avatar Julien Nabet

coverity#982145 Buffer not null terminated

Change-Id: I5dd0050a0fbb5918da2d863998a7f24d9b144780
üst 613221bd
...@@ -720,7 +720,7 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname) ...@@ -720,7 +720,7 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
} }
else // from network, on windows, fname is c:\abc123 else // from network, on windows, fname is c:\abc123
{ {
strncpy(localPathNew, fname, sizeof(localPathNew)); strncpy(localPathNew, fname, NPP_PATH_MAX - 1);
char* pRandomFilename = NULL; char* pRandomFilename = NULL;
#ifdef UNIX #ifdef UNIX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment