projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Holy war on strlen: use IsEmptyStr where apropriate.
[citadel.git]
/
citadel
/
client_chat.c
diff --git
a/citadel/client_chat.c
b/citadel/client_chat.c
index 08eff91d854a83f283ca1899320badf04f147dce..1cdb958f9dcd037f2fa1a5406cb58250e7fe6327 100644
(file)
--- a/
citadel/client_chat.c
+++ b/
citadel/client_chat.c
@@
-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);
}