diff options
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index f66ed57..0bf6d7a 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -417,10 +417,8 @@ java_read_char (lex) is in the middle of a character sequence. We just move the valid part of the buffer to the beginning to force a read. */ - /* We use bcopy() because it should work for - overlapping strings. Use memmove() instead... */ - bcopy (&lex->buffer[lex->first], &lex->buffer[0], - lex->last - lex->first); + memmove (&lex->buffer[0], &lex->buffer[lex->first], + lex->last - lex->first); lex->last -= lex->first; lex->first = 0; } |