From f8b7a5d26b0e917273143f5ae76247505e896420 Mon Sep 17 00:00:00 2001 From: Mo DeJong Date: Tue, 29 Feb 2000 17:04:35 +0000 Subject: [PATCH] ZipOutputStream.java (write_entry): Fixed SIGSEV caused by use of the wrong instance variable. 2000-02-28 Mo DeJong * java/util/zip/ZipOutputStream.java(write_entry) : Fixed SIGSEV caused by use of the wrong instance variable. From-SVN: r32256 --- libjava/ChangeLog | 5 +++++ libjava/java/util/zip/ZipOutputStream.java | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 70dcc678be96..99d822a9f2a3 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2000-02-28 Mo DeJong + + * java/util/zip/ZipOutputStream.java(write_entry) : Fixed + SIGSEV caused by use of the wrong instance variable. + 2000-02-27 Bryce McKinlay * java/io/File.java (File(String, String)): For dirPath, treat an diff --git a/libjava/java/util/zip/ZipOutputStream.java b/libjava/java/util/zip/ZipOutputStream.java index 956251fd72ea..7c265ac1c631 100644 --- a/libjava/java/util/zip/ZipOutputStream.java +++ b/libjava/java/util/zip/ZipOutputStream.java @@ -1,4 +1,4 @@ -/* Copyright (C) 1999 Red Hat, Inc. +/* Copyright (C) 1999, 2000 Red Hat, Inc. This file is part of libgcj. @@ -104,8 +104,8 @@ public class ZipOutputStream extends DeflaterOutputStream boolean crc_after = false; if (is_local - && (current.getCrc() == -1 || current.getCompressedSize() == -1 - || current.getSize() == -1)) + && (entry.getCrc() == -1 || entry.getCompressedSize() == -1 + || entry.getSize() == -1)) crc_after = true; // For the bits field we always indicate `normal' compression, // even if that isn't true. -- 2.43.5