mirror of
git://slackware.nl/current.git
synced 2024-11-16 07:48:02 +01:00
d8220d28e5
patches/packages/glibc-zoneinfo-2018e-noarch-2_slack13.0.txz: Rebuilt. Handle removal of US/Pacific-New timezone. If we see that the machine is using this, it will be automatically switched to US/Pacific.
30 lines
667 B
Diff
30 lines
667 B
Diff
diff --git a/pppd/options.c b/pppd/options.c
|
|
index 45fa742..e9042d1 100644
|
|
--- a/pppd/options.c
|
|
+++ b/pppd/options.c
|
|
@@ -1289,9 +1289,10 @@ getword(f, word, newlinep, filename)
|
|
/*
|
|
* Store the resulting character for the escape sequence.
|
|
*/
|
|
- if (len < MAXWORDLEN-1)
|
|
+ if (len < MAXWORDLEN) {
|
|
word[len] = value;
|
|
- ++len;
|
|
+ ++len;
|
|
+ }
|
|
|
|
if (!got)
|
|
c = getc(f);
|
|
@@ -1329,9 +1330,10 @@ getword(f, word, newlinep, filename)
|
|
/*
|
|
* An ordinary character: store it in the word and get another.
|
|
*/
|
|
- if (len < MAXWORDLEN-1)
|
|
+ if (len < MAXWORDLEN) {
|
|
word[len] = c;
|
|
- ++len;
|
|
+ ++len;
|
|
+ }
|
|
|
|
c = getc(f);
|
|
}
|