summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
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