summaryrefslogtreecommitdiff
path: root/src/modules/chat/tools.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-06-02 14:42:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-06-02 14:42:45 +0000
commit139cfdf630b6257529a3f4bad40463e73fc38d7d (patch)
treefd6b02c9212083cd67e317f60fb962c45502369f /src/modules/chat/tools.cpp
parent072a18963fcb2dd827533a1cc625390375856f0a (diff)
minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@9397 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/chat/tools.cpp')
-rw-r--r--src/modules/chat/tools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/chat/tools.cpp b/src/modules/chat/tools.cpp
index c3cdf9889e..dd74d42f1a 100644
--- a/src/modules/chat/tools.cpp
+++ b/src/modules/chat/tools.cpp
@@ -38,7 +38,7 @@ TCHAR* RemoveFormatting(const TCHAR* pszWord)
int i = 0;
int j = 0;
- if (pszWord == 0 || lstrlen(pszWord) == 0)
+ if (pszWord == 0 || pszWord[0] == 0)
return NULL;
while (j < 9999 && i <= lstrlen(pszWord)) {
@@ -170,7 +170,7 @@ int ShowPopup(MCONTACT hContact, SESSION_INFO *si, HICON hIcon, char* pszProtoNa
{
static TCHAR szBuf[4 * 1024];
- if (!fmt || lstrlen(fmt) == 0 || lstrlen(fmt) > 2000)
+ if (!fmt || fmt[0] == 0 || lstrlen(fmt) > 2000)
return 0;
va_list marker;