X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;h=f1d2dc9ddf36947df03d864c47241a6bb34def32;hb=c10c3c7cb3e779af5286430d5c9bb835a873ab32;hp=5db580a0e270c0628fb99d1400423599a1f0ce5e;hpb=292c35d97edb6eca5f7af7aae31488cca2c2ca6f;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index 5db580a..f1d2dc9 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -79,7 +79,6 @@ char *strdup __P((char *)); #endif -static const char rcsid[] = RCSID; struct option_value { struct option_value *next; @@ -1358,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.