From 062edaed2aba02add8b88f27823ed73a2dd0c2b6 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 19 May 2000 00:52:10 +0000 Subject: [PATCH] jcf-write.c (generate_classfile): Scan the source_file for slashes with the right pointer variable. 2000-05-18 Alexandre Oliva * jcf-write.c (generate_classfile): Scan the source_file for slashes with the right pointer variable. From-SVN: r34006 --- gcc/java/ChangeLog | 5 +++++ gcc/java/jcf-write.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 8a86067..0fe7ad8 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-05-18 Alexandre Oliva + + * jcf-write.c (generate_classfile): Scan the source_file for + slashes with the right pointer variable. + Wed May 17 17:27:44 2000 Andrew Cagney * lang.c (lang_decode_option): Update -Wunused flags by calling diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index 3b93e51..ac3b42e 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -3066,7 +3066,7 @@ generate_classfile (clas, state) source_file = DECL_SOURCE_FILE (TYPE_NAME (clas)); for (s = source_file; ; s++) { - char ch = *ptr; + char ch = *s; if (ch == '\0') break; if (ch == '/' || ch == '\\') -- 2.7.4