summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-12 21:12:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-12 21:12:10 +0000
commita120fa48d18068380f5f3045879b9aaa707b7e1e (patch)
treed314c56ba90c8886c111be5457d73a015484c37c /src
parenta1a5930ab1f10f6e65fe609ee4ce0bcef4459bc1 (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@9780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/core/stdauth/authdialogs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/stdauth/authdialogs.cpp b/src/core/stdauth/authdialogs.cpp
index d4584ceef9..92e5234f89 100644
--- a/src/core/stdauth/authdialogs.cpp
+++ b/src/core/stdauth/authdialogs.cpp
@@ -194,7 +194,7 @@ INT_PTR CALLBACK DlgProcAuthReq(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
off = mir_sntprintf(name, SIZEOF(name), _T("%s"), (TCHAR*)firstT);
else if (lastT[0])
off = mir_sntprintf(name, SIZEOF(name), _T("%s"), (TCHAR*)lastT);
- if (nickT[0]) {
+ if (lstrlen(nickT)) {
if (off)
mir_sntprintf(name + off, SIZEOF(name) - off, _T(" (%s)"), (TCHAR*)nickT);
else