diff options
author | Jeremy Allison <jra@samba.org> | 2003-08-06 19:30:42 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-08-06 19:30:42 +0000 |
commit | 455ed2d51d86f39ce0fa6e6abca31a5425d2ea17 (patch) | |
tree | c77ea37e20a96f9c8c48c535c764849e442986d7 /source/client/smbmnt.c | |
parent | 575483a1efe18a90055490117ba6894512ae568a (diff) | |
download | samba-455ed2d51d86f39ce0fa6e6abca31a5425d2ea17.tar.gz samba-455ed2d51d86f39ce0fa6e6abca31a5425d2ea17.tar.xz samba-455ed2d51d86f39ce0fa6e6abca31a5425d2ea17.zip |
Get rid of MAXPATHLEN, move to standard PATH_MAX.
Jeremy.
Diffstat (limited to 'source/client/smbmnt.c')
-rw-r--r-- | source/client/smbmnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/client/smbmnt.c b/source/client/smbmnt.c index ce406179cfd..0e36231bac7 100644 --- a/source/client/smbmnt.c +++ b/source/client/smbmnt.c @@ -94,9 +94,9 @@ parse_args(int argc, char *argv[], struct smb_mount_data *data, char **share) static char * fullpath(const char *p) { - char path[MAXPATHLEN]; + char path[PATH_MAX+1]; - if (strlen(p) > MAXPATHLEN-1) { + if (strlen(p) > PATH_MAX) { return NULL; } |