Kaydet (Commit) d1e6ecb3 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#983489 String Overflow

Change-Id: I146844d10dc6ee147031a8ffa6fabe9e271b2bd0
üst 54bf6b12
......@@ -708,8 +708,10 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
char* pfilename = NULL;
if (NULL != (pfilename = strrchr(url, '/')))
{
strcpy(filename, pfilename+1);
} else {
strncat(filename, pfilename+1, 1024);
}
else
{
return;
}
......
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