diff options
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 2 |
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))); |