From d9ac691aac55473b5bc9945504b2c0daf554deee Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 8 Feb 2002 11:57:43 +0000 Subject: Fixed RCSLOCALID buffer overflow (by making an overflow condition fatal). Spotted by: John Johnson --- gnu/usr.bin/rcs/lib/rcskeys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/usr.bin/rcs') diff --git a/gnu/usr.bin/rcs/lib/rcskeys.c b/gnu/usr.bin/rcs/lib/rcskeys.c index db6f9c9..378f57d 100644 --- a/gnu/usr.bin/rcs/lib/rcskeys.c +++ b/gnu/usr.bin/rcs/lib/rcskeys.c @@ -167,7 +167,7 @@ setRCSLocalId(string) next = copy; key = strtok(next, "="); if (strlen(key) > keylength) - error("LocalId is too long"); + faterror("LocalId is too long"); VOID strcpy(local_id, key); Keyword[LocalId] = local_id; -- cgit v1.1