diff options
| author | Raymaekers Luca <luca@keyfried.com> | 2024-10-25 18:08:08 +0200 |
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-25 18:08:16 +0200 |
| commit | dc8bff0ab1911abffcc48e53875dc65b8ff8aacd (patch) | |
| tree | 28c152b03106bb7cca04d923880c7a0ff6fd13fc /v2/chatty.c | |
| parent | ebb403e878f2a8e1d2943f08770fff3872f60894 (diff) | |
fixed bug not allow sending empty message
Diffstat (limited to 'v2/chatty.c')
| -rw-r--r-- | v2/chatty.c | 2 |
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++; |
