sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 13898fa7a91155a60c4c0bd61d4b7693a2ff3f09
parent bca3fcca91cfb6ee64434776aa20209547816c17
Author: Elie Le Vaillant <eolien55@disroot.org>
Date:   Tue,  5 Mar 2024 21:20:57 +0100

tar: chktar: fix conditional typo

Diffstat:
Mtar.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tar.c b/tar.c @@ -423,7 +423,7 @@ chktar(struct header *h) goto bad; } memcpy(tmp, h->chksum, sizeof(tmp)); - for (i = 0; i < sizeof(tmp), tmp[i] == ' '; i++); + for (i = 0; i < sizeof(tmp) && tmp[i] == ' '; i++); for (; i < sizeof(tmp); i++) if (tmp[i] == ' ') tmp[i] = '\0';