summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-04-28 02:46:50 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-04-28 02:46:50 +0200
commit285cd429f731082e1378c7e1362b083103c8a426 (patch)
tree90ce9c284c2812055530b6577591d725e125f75b /input.c
parentc3927cc39106d6b7cd746109784b6e8af203ec6b (diff)
downloadscreen-upstream.tar.gz
Imported Upstream version 4.2.1upstream/4.2.1upstream
Diffstat (limited to 'input.c')
-rw-r--r--input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/input.c b/input.c
index f0f9982..c17cd15 100644
--- a/input.c
+++ b/input.c
@@ -43,7 +43,7 @@ extern struct mchar mchar_blank, mchar_so;
struct inpline
{
- char buf[101]; /* text buffer */
+ char buf[MAXSTR+1]; /* text buffer */
int len; /* length of the editible string */
int pos; /* cursor position in editable string */
struct inpline *next, *prev;
@@ -58,7 +58,7 @@ static struct inpline inphist;
struct inpdata
{
struct inpline inp;
- int inpmaxlen; /* 100, or less, if caller has shorter buffer */
+ int inpmaxlen; /* MAXSTR, or less, if caller has shorter buffer */
char *inpstring; /* the prompt */
int inpstringlen; /* length of the prompt */
int inpmode; /* INP_NOECHO, INP_RAW, INP_EVERY */
@@ -134,8 +134,8 @@ int data;
if (!flayer)
return;
- if (len > 100)
- len = 100;
+ if (len > MAXSTR)
+ len = MAXSTR;
if (!(mode & INP_NOECHO))
{
maxlen = flayer->l_width - 1 - strlen(istr);