* Holy war on strlen: use IsEmptyStr where apropriate.
[citadel.git] / citadel / client_chat.c
index 08eff91d854a83f283ca1899320badf04f147dce..1cdb958f9dcd037f2fa1a5406cb58250e7fe6327 100644 (file)
@@ -113,7 +113,7 @@ void chatmode(CtdlIPC *ipc)
                        if ((ch == 10) || (ch == 13)) {
                                send_complete_line = 1;
                        } else if ((ch == 8) || (ch == 127)) {
-                               if (strlen(wbuf) > 0) {
+                               if (!IsEmptyStr(wbuf)) {
                                        wbuf[strlen(wbuf) - 1] = 0;
                                        sln_printf("%c %c", 8, 8);
                                }