diff options
Diffstat (limited to 'bin/pax/tar.c')
-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; |