From e602bca52fc50f2b126d5edbd7afd019bf96bbcc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 6 Aug 2003 21:31:11 +0000 Subject: Reversed replacement. Oops. Jeremy. (This used to be commit 520bee397d946766cef8ab9f0d7d89064106f510) --- source3/client/clitar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/client') diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 15c6ea3076..7e0efc7947 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -1477,7 +1477,7 @@ accordingly. static int read_inclusion_file(char *filename) { XFILE *inclusion = NULL; - char buf[MAX_PATH + 1]; + char buf[PATH_MAX + 1]; char *inclusion_buffer = NULL; int inclusion_buffer_size = 0; int inclusion_buffer_sofar = 0; @@ -1487,7 +1487,7 @@ static int read_inclusion_file(char *filename) int error = 0; clipn = 0; - buf[MAX_PATH] = '\0'; /* guarantee null-termination */ + buf[PATH_MAX] = '\0'; /* guarantee null-termination */ if ((inclusion = x_fopen(filename, O_RDONLY, 0)) == NULL) { /* XXX It would be better to include a reason for failure, but without * autoconf, it's hard to use strerror, sys_errlist, etc. -- cgit