From 9c9afbb56c8f5ac3e302d0073222e95162513004 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 29 Jun 2016 09:18:52 +0000 Subject: IEView: fix(?) avatar path, code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@17042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/TemplateHTMLBuilder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/IEView/src/TemplateHTMLBuilder.cpp') diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index 4ace2ae70b..9be18d0f3e 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -301,9 +301,9 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, char* pathrun = nullptr; if (pathrun = strrchr(tempBase, '\\')) - ++pathrun = '\0'; + *(++pathrun) = '\0'; else if (pathrun = strrchr(tempBase, '/')) - ++pathrun = '\0'; + *(++pathrun) = '\0'; isGrouping = tmpm->isGrouping(); } @@ -404,7 +404,7 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, else szFileDesc = encodeUTF8(event->hContact, szRealProto, eventData->pszText2, event->codepage, 0, isSent); - if ((eventData->iType == IEED_EVENT_MESSAGE)) { + if (eventData->iType == IEED_EVENT_MESSAGE) { if (!isRTL) { if (isGrouping && (getFlags(protoSettings) & Options::LOG_GROUP_MESSAGES)) { if (isGroupBreak) -- cgit v1.2.3