summaryrefslogtreecommitdiff
path: root/source3/client/clitar.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-08-06 19:30:42 +0000
committerJeremy Allison <jra@samba.org>2003-08-06 19:30:42 +0000
commit17a713d1b9eb00e28036fe9028c09c202340504f (patch)
treeae4fd7206298a1804d51eabf453e230774501571 /source3/client/clitar.c
parent44e6c30f711fe227dad9e77aeb1c2b06d7ce5993 (diff)
downloadsamba-17a713d1b9eb00e28036fe9028c09c202340504f.tar.gz
samba-17a713d1b9eb00e28036fe9028c09c202340504f.tar.bz2
samba-17a713d1b9eb00e28036fe9028c09c202340504f.zip
Get rid of MAXPATHLEN, move to standard PATH_MAX.
Jeremy. (This used to be commit 455ed2d51d86f39ce0fa6e6abca31a5425d2ea17)
Diffstat (limited to 'source3/client/clitar.c')
-rw-r--r--source3/client/clitar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 5295de8010..15c6ea3076 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[MAXPATHLEN + 1];
+ char buf[MAX_PATH + 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[MAXPATHLEN] = '\0'; /* guarantee null-termination */
+ buf[MAX_PATH] = '\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.