summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-06-29 05:04:41 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-06-29 05:04:41 +0000
commit0d67c4a0bf8660310bdcc4c7674d7d306ab7c982 (patch)
tree2cd71b616d3a2a4c1bd003c012737ef3f8e05154 /usr.bin/rcs
parentacf6f98d2d0202792832b9a655a8c46996cf89ce (diff)
Sync cvs/rcs diff code.
OK joris and xsa.
Diffstat (limited to 'usr.bin/rcs')
-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");