summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2005-02-08 10:38:24 +0000
committerbrian <brian@FreeBSD.org>2005-02-08 10:38:24 +0000
commiteb15e06dbfd6f0aa0b031102e3076053fe414415 (patch)
tree1cd6391129602c88388ba684014a38fdb0bd3ac8 /usr.sbin/ppp
parentceda29ce7151a8a853f419e05b1d2af55edc9642 (diff)
downloadFreeBSD-src-eb15e06dbfd6f0aa0b031102e3076053fe414415.zip
FreeBSD-src-eb15e06dbfd6f0aa0b031102e3076053fe414415.tar.gz
Use the correct length when copying trailing data!!
PR: 77104 Submitted by: Martin Birgmeier martin at email dot aon dot at MFC after: 3 days
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 156fa8c..3be3946 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -455,7 +455,7 @@ subst(char *tgt, const char *oldstr, const char *newstr)
tgt = ntgt;
}
if (lnewstr > loldstr)
- bcopy(word + loldstr, word + lnewstr, ltgt - pos - loldstr);
+ bcopy(word + loldstr, word + lnewstr, ltgt - pos - lnewstr);
bcopy(newstr, word, lnewstr);
} while ((word = strstrword(word, oldstr)));
OpenPOWER on IntegriCloud