Fixed RCSLOCALID buffer overflow (by making an overflow condition fatal).

Spotted by:	John Johnson <bio.metrix@gte.net>
This commit is contained in:
Ruslan Ermilov 2002-02-08 11:57:43 +00:00
parent 4d42fb0aab
commit a87e0b35bf

View File

@ -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;