X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;h=f1d2dc9ddf36947df03d864c47241a6bb34def32;hb=8d7970b8f3db727fe798b65f3377fe6787575426;hp=5e1489f495779d9e58a481f5177ecda66c9166b5;hpb=d8e8d7a74b791743ad67e8bdba10508b0f901beb;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index 5e1489f..f1d2dc9 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -1357,6 +1357,7 @@ getword(f, word, newlinep, filename) c = getc(f); } + word[MAXWORDLEN-1] = 0; /* make sure word is null-terminated */ /* * End of the word: check for errors.