From 952392af38b5558f5dfb858251fce4d22c9a1ec2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 14 Dec 2013 10:45:42 +0100 Subject: 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 Reviewed-by: Volker Lendecke --- source3/smbd/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/files.c') 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; -- cgit