diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-14 10:45:42 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2013-12-14 16:24:34 +0100 |
commit | 952392af38b5558f5dfb858251fce4d22c9a1ec2 (patch) | |
tree | 6e4988ae4da0b72a569c30177dc461850d94b16a /source3/smbd/files.c | |
parent | f3556bd03bf9dfa16fb00d85da1a2c065cb0e522 (diff) | |
download | samba-952392af38b5558f5dfb858251fce4d22c9a1ec2.tar.gz samba-952392af38b5558f5dfb858251fce4d22c9a1ec2.tar.xz samba-952392af38b5558f5dfb858251fce4d22c9a1ec2.zip |
s3:smbd: use PATH_MAX for the buffer passed to full_path_tos()
We use this in other places too and it's better than a hardcoded value.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r-- | source3/smbd/files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index ba24eda27f..5cf037edc2 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -734,7 +734,7 @@ ssize_t full_path_tos(const char *dir, const char *name, NTSTATUS file_name_hash(connection_struct *conn, const char *name, uint32_t *p_name_hash) { - char tmpbuf[1024]; + char tmpbuf[PATH_MAX]; char *fullpath, *to_free; size_t len; |