diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-28 08:57:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-28 08:57:38 +0000 |
commit | f09526878cf9574ca68d6c2c5dc39073c2326508 (patch) | |
tree | 54d72076ddbf4da30b849baf27508957fd000b32 /usr.bin/deroff | |
parent | d0a6bdcd1563f029d80661162dc85056c96a850f (diff) |
Fix size parameter to memmove() (off by one) introduced in last commit.
Now I can sleep.
Diffstat (limited to 'usr.bin/deroff')
-rw-r--r-- | usr.bin/deroff/deroff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/deroff/deroff.c b/usr.bin/deroff/deroff.c index 009f09b53de..47a64f4b440 100644 --- a/usr.bin/deroff/deroff.c +++ b/usr.bin/deroff/deroff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: deroff.c,v 1.2 2002/02/28 07:20:21 millert Exp $ */ +/* $OpenBSD: deroff.c,v 1.3 2002/02/28 08:57:37 millert Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -76,7 +76,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)deroff.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: deroff.c,v 1.2 2002/02/28 07:20:21 millert Exp $"; +static const char rcsid[] = "$OpenBSD: deroff.c,v 1.3 2002/02/28 08:57:37 millert Exp $"; #endif #endif /* not lint */ @@ -958,7 +958,7 @@ meputmac(char *cp, int constant) case '"': if (inquote && np[1] == '"') { - memmove(np, np + 1, strlen(np + 1)); + memmove(np, np + 1, strlen(np)); np++; continue; } else { |