commit 3fc9c4d7ee1bd9a05b7bed3e835861923b6c9b28
Author: Tom Schwindl <[email protected]>
AuthorDate: Wed Jan 11 09:59:12 2023 +0100
Commit: Jan Klemkow <[email protected]>
CommitDate: Tue Jan 24 16:59:40 2023 +0100
lchat: in case the `-m` flag receives an invalid mode, abort
diff --git a/lchat.c b/lchat.c
index 35c5463..4a59760 100644
--- a/lchat.c
+++ b/lchat.c
@@ -221,6 +221,8 @@ main(int argc, char *argv[])
case 'm':
if (strcmp(optarg, "emacs") == 0)
sl_mode(sl, SL_EMACS);
+ else
+ die("lchat: invalid mode");
break;
case 'h':
default: