From e4302ad10ffffed04d4e11bfe9b11d2b389656a1 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 27 Mar 2015 22:25:31 +0000 Subject: IEView: - Fixed HTML encoding - minor bugfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12533 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/TemplateHTMLBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/IEView/src/TemplateHTMLBuilder.cpp') diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index 10ce8161c0..32711fbccf 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://"); - strcat(tempBase, tmpm->getFilename()); + strncat(tempBase, tmpm->getFilename(), SIZEOF(tempBase)-1); char *pathrun = tempBase + strlen(tempBase); while ((*pathrun != '\\' && *pathrun != '/') && (pathrun > tempBase)) pathrun--; -- cgit v1.2.3