summaryrefslogtreecommitdiffstats
path: root/usr.bin/rcs/diff.c
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2007-06-29 05:04:40 +0000
committerray <ray@openbsd.org>2007-06-29 05:04:40 +0000
commiteea21b3c1c3726ad08ab70bb1d6eadd69eaeb537 (patch)
tree9b0c66ff8556a76edebab993baa96045d8496c98 /usr.bin/rcs/diff.c
parentsick of extra static messing up tracebacks; ok miod (diff)
downloadwireguard-openbsd-eea21b3c1c3726ad08ab70bb1d6eadd69eaeb537.tar.xz
wireguard-openbsd-eea21b3c1c3726ad08ab70bb1d6eadd69eaeb537.zip
Sync cvs/rcs diff code.
OK joris and xsa.
Diffstat (limited to 'usr.bin/rcs/diff.c')
-rw-r--r--usr.bin/rcs/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/diff.c b/usr.bin/rcs/diff.c
index 8b644bf3b19..261067fcc6f 100644
--- a/usr.bin/rcs/diff.c
+++ b/usr.bin/rcs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.22 2007/06/28 05:01:39 ray Exp $ */
+/* $OpenBSD: diff.c,v 1.23 2007/06/29 05:04:40 ray Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -1181,7 +1181,7 @@ match_function(const long *f, int pos, FILE *fp)
if (!state)
state = " (public)";
} else {
- if (strlcpy(lastbuf, (const char *)buf,
+ if (strlcpy(lastbuf, buf,
sizeof(lastbuf)) >= sizeof(lastbuf))
errx(1,
"match_function: strlcpy");