summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/process.c b/process.c
index 30497a3..314d787 100644
--- a/process.c
+++ b/process.c
@@ -478,6 +478,8 @@ int *val;
char *noargs[1];
+int enter_window_name_mode = 0;
+
void
InitKeytab()
{
@@ -2097,7 +2099,7 @@ int key;
ChangeAKA(fore, *args, strlen(*args));
break;
case RC_COLON:
- Input(":", 100, INP_EVERY, Colonfin, NULL, 0);
+ Input(":", MAXSTR, INP_EVERY, Colonfin, NULL, 0);
if (*args && **args)
{
s = *args;
@@ -2664,9 +2666,9 @@ int key;
s = NULL;
if (ParseSaveStr(act, &s))
break;
- if (strlen(s) >= 20)
+ if (strlen(s) >= MAXTERMLEN)
{
- OutputMsg(0, "%s: term: argument too long ( < 20)", rc_name);
+ OutputMsg(0, "%s: term: argument too long ( < %d)", rc_name, MAXTERMLEN);
free(s);
break;
}
@@ -3185,6 +3187,10 @@ int key;
case RC_NETHACK:
(void)ParseOnOff(act, &nethackflag);
break;
+#else
+ case RC_NETHACK:
+ Msg(0, "nethack disabled at build time");
+ break;
#endif
case RC_HARDCOPY_APPEND:
(void)ParseOnOff(act, &hardcopy_append);
@@ -5744,6 +5750,8 @@ char *data; /* dummy */
ASSERT(display);
if (len && fore)
ChangeAKA(fore, buf, strlen(buf));
+
+ enter_window_name_mode = 0;
}
static void
@@ -5751,6 +5759,11 @@ InputAKA()
{
char *s, *ss;
int n;
+
+ if (enter_window_name_mode == 1) return;
+
+ enter_window_name_mode = 1;
+
Input("Set window's title to: ", sizeof(fore->w_akabuf) - 1, INP_COOKED, AKAfin, NULL, 0);
s = fore->w_title;
if (!s)