aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-26 02:26:09 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-26 02:26:09 +0000
commitcb9b7a8c9f080833c95afd184c25e372b43797d8 (patch)
tree1d29c7017bbff47e9722e9b0b853769c29366d8e /gcc/java/lex.c
parent730e15561d35b15a74b45688d40c9639e077dbca (diff)
downloadgcc-cb9b7a8c9f080833c95afd184c25e372b43797d8.zip
gcc-cb9b7a8c9f080833c95afd184c25e372b43797d8.tar.gz
gcc-cb9b7a8c9f080833c95afd184c25e372b43797d8.tar.bz2
constants.c (PUTN): Use memcpy, not bcopy.
* constants.c (PUTN): Use memcpy, not bcopy. * lex.c (java_read_char): Use memmove, not bcopy. * parse.y (java_parser_context_resume): Use memcpy, not bcopy. From-SVN: r40836
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c6
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;
}