- lexer.c re-generated with flex
This commit is contained in:
parent
8d02b01e41
commit
0dbedb711f
@ -19,7 +19,7 @@
|
||||
/* A lexical scanner generated by flex */
|
||||
|
||||
/* Scanner skeleton version:
|
||||
* $Header: /home/volker/Archiv/bochs-cvs-rsync-20110222/bochs/bx_debug/lexer.c,v 1.3 2004-08-24 10:15:55 vruppert Exp $
|
||||
* $Header: /home/volker/Archiv/bochs-cvs-rsync-20110222/bochs/bx_debug/lexer.c,v 1.4 2005-04-15 12:16:01 vruppert Exp $
|
||||
*/
|
||||
|
||||
#define FLEX_SCANNER
|
||||
@ -663,7 +663,7 @@ char *yytext;
|
||||
#define INITIAL 0
|
||||
#line 2 "lexer.l"
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: lexer.c,v 1.3 2004-08-24 10:15:55 vruppert Exp $
|
||||
// $Id: lexer.c,v 1.4 2005-04-15 12:16:01 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -2592,7 +2592,7 @@ bx_yyinput(char *buf, int max_size)
|
||||
}
|
||||
|
||||
len = strlen(lex_input_ptr);
|
||||
if (len > max_size)
|
||||
if (max_size > len)
|
||||
max_size = len;
|
||||
|
||||
memcpy(buf, lex_input_ptr, max_size);
|
||||
|
Loading…
Reference in New Issue
Block a user