From fe421efe7f39308bdc63ceee9bc808d2ae35183d Mon Sep 17 00:00:00 2001 From: tromey Date: Sun, 10 Nov 2002 21:13:44 +0000 Subject: 2002-11-10 Anthony Green * java/util/jar/Attributes.java (Name): Fix name check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58992 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/util/jar/Attributes.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libjava/java/util') diff --git a/libjava/java/util/jar/Attributes.java b/libjava/java/util/jar/Attributes.java index 0bf27bdb9ec..ea203446eaa 100644 --- a/libjava/java/util/jar/Attributes.java +++ b/libjava/java/util/jar/Attributes.java @@ -1,5 +1,5 @@ /* Attributes.java -- Represents attribute name/value pairs from a Manifest - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -285,6 +285,7 @@ public class Attributes implements Cloneable, Map // all other characters must be alphanums, '-' or '_' for (int i = 1; i < chars.length; i++) { + c = chars[i]; if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || (c == '-') || (c == '_'))) -- cgit v1.2.3