coverity#982145 Buffer not null terminated
Change-Id: I5dd0050a0fbb5918da2d863998a7f24d9b144780
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user