=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/lex/Attic/initscan.c 2003/06/04 17:34:44 1.10 --- src/usr.bin/lex/Attic/initscan.c 2006/12/06 05:03:29 1.11 *************** *** 1,10 **** ! /* $OpenBSD: initscan.c,v 1.10 2003/06/04 17:34:44 millert Exp $ */ #line 2 "scan.c" /* A lexical scanner generated by flex */ /* Scanner skeleton version: ! * $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v 1.10 2003/06/04 17:34:44 millert Exp $ */ #define FLEX_SCANNER --- 1,10 ---- ! /* $OpenBSD: initscan.c,v 1.11 2006/12/06 05:03:29 ray Exp $ */ #line 2 "scan.c" /* A lexical scanner generated by flex */ /* Scanner skeleton version: ! * $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v 1.11 2006/12/06 05:03:29 ray Exp $ */ #define FLEX_SCANNER *************** *** 1277,1283 **** * PURPOSE. */ ! /* $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v 1.10 2003/06/04 17:34:44 millert Exp $ */ #include "flexdef.h" #include "parse.h" --- 1277,1283 ---- * PURPOSE. */ ! /* $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v 1.11 2006/12/06 05:03:29 ray Exp $ */ #include "flexdef.h" #include "parse.h" *************** *** 2052,2058 **** #line 279 "scan.l" { strlcpy( nmstr, yytext + 1, sizeof nmstr ); ! nmstr[strlen( nmstr ) - 1] = '\0'; return NAME; } YY_BREAK --- 2052,2059 ---- #line 279 "scan.l" { strlcpy( nmstr, yytext + 1, sizeof nmstr ); ! if (nmstr[strlen(nmstr) - 1] == '"') ! nmstr[strlen(nmstr) - 1] = '\0'; return NAME; } YY_BREAK