From 73421a8f09e44446605b92fcc28a54f57d50f5b5 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Thu, 10 Jul 2014 11:45:36 +0200 Subject: coverity#1224983 out of bound Change-Id: I58cf35e8729110f2488bf08d6cadc1ec428298cf --- extensions/source/nsplugin/source/npshell.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx index cae8fbe2e7a9..b73c3e8841d3 100644 --- a/extensions/source/nsplugin/source/npshell.cxx +++ b/extensions/source/nsplugin/source/npshell.cxx @@ -708,7 +708,7 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname) char* pfilename = NULL; if (NULL != (pfilename = strrchr(url, '/'))) { - strncat(filename, pfilename+1, 1024); + strncat(filename, pfilename+1, 1023); } else { -- cgit