From 7f7348b7b2ae134d1e958c04b3123b573dec8b70 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Tue, 22 May 2001 14:18:03 +0000 Subject: [PATCH] Correctly remove leading slashes upon extraction (thanks to Marius Groeger). --- archival/tar.c | 2 +- tar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archival/tar.c b/archival/tar.c index 6af16f4bd..282656fe7 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -490,7 +490,7 @@ readTarHeader(struct TarHeader *rawHeader, struct TarInfo *header) static int alreadyWarned=FALSE; while (*(header->name) == '/') - ++*(header->name); + header->name++; if (alreadyWarned == FALSE) { error_msg("Removing leading '/' from member names"); diff --git a/tar.c b/tar.c index 6af16f4bd..282656fe7 100644 --- a/tar.c +++ b/tar.c @@ -490,7 +490,7 @@ readTarHeader(struct TarHeader *rawHeader, struct TarInfo *header) static int alreadyWarned=FALSE; while (*(header->name) == '/') - ++*(header->name); + header->name++; if (alreadyWarned == FALSE) { error_msg("Removing leading '/' from member names");