summaryrefslogtreecommitdiff
path: root/src/modules/chat/tools.cpp
diff options
context:
space:
mode:
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;