]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/screen-4.2.1-cpation-hardstatus.patch
core91: Add changed pppsetup.cgi and language files
[ipfire-2.x.git] / src / patches / screen-4.2.1-cpation-hardstatus.patch
CommitLineData
2a219580
MF
1diff --git a/src/screen.c b/src/screen.c
2index 473e4fa..8b36bea 100644
3--- a/screen.c
4+++ b/screen.c
5@@ -2271,8 +2271,8 @@ int padlen;
6 while (i-- > 0)
7 *pn-- = ' ';
8 numpad--;
9- if (r && p - buf == winmsg_rendpos[r - 1])
10- winmsg_rendpos[--r] = pn - buf;
11+ if (r && p - buf + 1== winmsg_rendpos[r - 1])
12+ winmsg_rendpos[--r] = pn - buf + 1;
13 }
14 }
15 return pn2;
16