diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:13:43 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:13:43 +0000 |
commit | e95b95c3931710251ebfd2a8fca53da3764f3094 (patch) | |
tree | e6c05dc93ef21d15bee73f24e5d487e27188ecd0 /plugins/IEView/src/TemplateHTMLBuilder.cpp | |
parent | 5b2ebe7fef3a15c5db381816241bf16850c8176a (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13635 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/TemplateHTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/TemplateHTMLBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index 864d37e6fe..09d042683c 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -176,7 +176,7 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr return;
strcpy(tempBase, "file://");
- strncat(tempBase, tmpm->getFilename(), SIZEOF(tempBase)-1);
+ strncat(tempBase, tmpm->getFilename(), SIZEOF(tempBase) - mir_strlen(tempBase));
char *pathrun = tempBase + strlen(tempBase);
while ((*pathrun != '\\' && *pathrun != '/') && (pathrun > tempBase))
pathrun--;
|