diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2024-04-16 19:09:07 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2024-04-16 19:09:07 +0000 |
commit | 91552f90d776cfd67d6f26aa48f1bba19a891f6b (patch) | |
tree | 39d621920a29534abc656eae321f134fc7865fdc | |
parent | 242bc64e6a5114f02e7a342704f37d6e4ee29e56 (diff) |
Revert wip patch, not intended for commit
-rw-r--r-- | bin/pax/tar.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/bin/pax/tar.c b/bin/pax/tar.c index 145562242ac..dff6684c68e 100644 --- a/bin/pax/tar.c +++ b/bin/pax/tar.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tar.c,v 1.81 2024/04/16 19:04:11 jca Exp $ */ +/* $OpenBSD: tar.c,v 1.82 2024/04/16 19:09:06 jca Exp $ */ /* $NetBSD: tar.c,v 1.5 1995/03/21 09:07:49 cgd Exp $ */ /*- @@ -1588,15 +1588,7 @@ rd_size(off_t *size, const char *keyword, char *p) static int rd_xheader(ARCHD *arcn, int global, off_t size) { - /* - * We want a buffer big enough to store - * a large path. Avert your eyes... - */ - char buf[ - 14 /* strlen("1xxx linkpath=") */ - + PATH_MAX + 100000 - + 1 /* strlen("\n") */ - ]; + char buf[MAXXHDRSZ]; long len; char *delim, *keyword; char *nextp, *p, *end; |