chiark / gitweb /
RJK fixes.
authorian <ian>
Sat, 24 Jan 1998 19:14:08 +0000 (19:14 +0000)
committerian <ian>
Sat, 24 Jan 1998 19:14:08 +0000 (19:14 +0000)
parser.c

index 0505474cf8e244cef09af0e12e215681f09733cc..ecfe32239aac292c8c4e313997c5f8320db397fc 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1298,7 +1298,7 @@ static int parse_file(const char *string, int *didexist) {
   
   if (didexist) *didexist= 1;
 
-  filename= xstrsave(string);
+  filename= xstrsave(file);
   ybuf= yy_create_buffer(file,YY_BUF_SIZE);
   if (!ybuf) syscallerror("unable to create flex buffer for file");
   parser_push(&usestate,filename,&newstab,ybuf,0);