=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -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 +1,10 @@ -/* $OpenBSD: initscan.c,v 1.10 2003/06/04 17:34:44 millert Exp $ */ +/* $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.10 2003/06/04 17:34:44 millert Exp $ + * $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,7 +1277,7 @@ * PURPOSE. */ -/* $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v 1.10 2003/06/04 17:34:44 millert Exp $ */ +/* $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,7 +2052,8 @@ #line 279 "scan.l" { strlcpy( nmstr, yytext + 1, sizeof nmstr ); - nmstr[strlen( nmstr ) - 1] = '\0'; + if (nmstr[strlen(nmstr) - 1] == '"') + nmstr[strlen(nmstr) - 1] = '\0'; return NAME; } YY_BREAK