aboutsummaryrefslogtreecommitdiff
path: root/v2/chatty.c
diff options
context:
space:
mode:
Diffstat (limited to 'v2/chatty.c')
-rw-r--r--v2/chatty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/v2/chatty.c b/v2/chatty.c
index 4074b77..ec850de 100644
--- a/v2/chatty.c
+++ b/v2/chatty.c
@@ -219,6 +219,8 @@ int main(int argc, char **argv)
exit = 1;
break;
case TB_KEY_CTRL_M: // send message
+ if (input_len == 0)
+ break;
// null terminate
input[input_len] = 0;
input_len++;