diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-07-26 14:40:08 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-07-26 14:40:08 +0000 |
commit | 076c2d3c92fa0b99bebce7181a8dc422f532976f (patch) | |
tree | 0b64737dd51829ed344fd063b032df037078054b | |
parent | bbc7ecc739f3215e6064ede2e593f5198a19624d (diff) |
buf oflow fix from FreeBSD; millert@ ok
-rw-r--r-- | usr.sbin/pkg_install/add/extract.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/add/extract.c b/usr.sbin/pkg_install/add/extract.c index 58361664a48..06e53dbb12a 100644 --- a/usr.sbin/pkg_install/add/extract.c +++ b/usr.sbin/pkg_install/add/extract.c @@ -1,7 +1,7 @@ -/* $OpenBSD: extract.c,v 1.7 1998/10/13 23:09:49 marc Exp $ */ +/* $OpenBSD: extract.c,v 1.8 1999/07/26 14:40:07 aaron Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: extract.c,v 1.7 1998/10/13 23:09:49 marc Exp $"; +static const char *rcsid = "$OpenBSD: extract.c,v 1.8 1999/07/26 14:40:07 aaron Exp $"; #endif /* @@ -30,8 +30,8 @@ static const char *rcsid = "$OpenBSD: extract.c,v 1.7 1998/10/13 23:09:49 marc E #define STARTSTRING "tar cf - " -#define TOOBIG(str) ((strlen(str) + 22 + strlen(home) + where_count > maxargs) \ - || (strlen(str) + 6 + strlen(home) + perm_count > maxargs)) +#define TOOBIG(str) ((strlen(str) + FILENAME_MAX + where_count > maxargs) \ + || (strlen(str) + FILENAME_MAX + perm_count > maxargs)) #define PUSHOUT(todir) /* push out string */ \ if (where_count > sizeof(STARTSTRING)-1) { \ |