diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2014-04-28 02:46:50 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2014-04-28 02:46:50 +0200 |
commit | 285cd429f731082e1378c7e1362b083103c8a426 (patch) | |
tree | 90ce9c284c2812055530b6577591d725e125f75b /input.c | |
parent | c3927cc39106d6b7cd746109784b6e8af203ec6b (diff) | |
download | screen-upstream.tar.gz |
Imported Upstream version 4.2.1upstream/4.2.1upstream
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |