summaryrefslogtreecommitdiffstats
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-12-14 10:45:42 +0100
committerVolker Lendecke <vl@samba.org>2013-12-14 16:24:34 +0100
commit952392af38b5558f5dfb858251fce4d22c9a1ec2 (patch)
tree6e4988ae4da0b72a569c30177dc461850d94b16a /source3/smbd/files.c
parentf3556bd03bf9dfa16fb00d85da1a2c065cb0e522 (diff)
downloadsamba-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.c2
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;