X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fclient_chat.c;h=535055fc9d40f7e8add4c2d70d57e1fcf3da4711;hb=b425dda0a48b4a3e24a9f22d25e864d42679feee;hp=1cdb958f9dcd037f2fa1a5406cb58250e7fe6327;hpb=8b8941a7c48dfcbec1f356150990da20093d6a16;p=citadel.git diff --git a/citadel/client_chat.c b/citadel/client_chat.c index 1cdb958f9..535055fc9 100644 --- a/citadel/client_chat.c +++ b/citadel/client_chat.c @@ -135,7 +135,7 @@ RCL: if (send_complete_line) { /* if it's time to word wrap, send a partial line */ if (strlen(wbuf) >= (77 - strlen(fullname))) { pos = 0; - for (a = 0; a < strlen(wbuf); ++a) { + for (a = 0; !IsEmptyStr(&wbuf[a]); ++a) { if (wbuf[a] == 32) pos = a; }