summaryrefslogtreecommitdiffstats
path: root/mbbsd/kaede.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/kaede.c')
-rw-r--r--mbbsd/kaede.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index fa591aad..e2f99758 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -7,19 +7,9 @@
int
expand_esc_star(char *buf, const char *src, int szbuf)
{
- if (*src != ESC_CHR)
- {
- strlcpy(buf, src, szbuf);
- return 0;
- }
-
- if (*++src != '*') // unknown escape... strip the ESC.
- {
- strlcpy(buf, src, szbuf);
- return 0;
- }
-
- switch(*++src)
+ assert(*src == KEY_ESC && *(src+1) == '*');
+ src += 2;
+ switch(*src)
{
//
// secure content