=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/rcs.c,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- src/usr.bin/rcs/rcs.c 2009/04/14 21:16:40 1.54 +++ src/usr.bin/rcs/rcs.c 2010/07/09 20:07:05 1.55 @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.54 2009/04/14 21:16:40 jj Exp $ */ +/* $OpenBSD: rcs.c,v 1.55 2010/07/09 20:07:05 naddy Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -2478,7 +2478,7 @@ type = RCS_TOK_SCOLON; } else if (ch == ':') { type = RCS_TOK_COLON; - } else if (isalpha(ch) || ch == '_' || ch == '$' || ch == '.' || ch == '-') { + } else if (isalpha(ch)) { type = RCS_TOK_ID; *(bp++) = ch; for (;;) { @@ -2486,8 +2486,8 @@ if (ch == EOF) { type = RCS_TOK_EOF; break; - } else if (!isalnum(ch) && ch != '_' && ch != '-' && - ch != '/' && ch != '.' && ch != '$') { + } else if (!isgraph(ch) || + strchr(rcs_sym_invch, ch) != NULL) { ungetc(ch, pdp->rp_file); break; }