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/notify.c | |
parent | f3556bd03bf9dfa16fb00d85da1a2c065cb0e522 (diff) | |
download | samba-952392af38b5558f5dfb858251fce4d22c9a1ec2.tar.gz |
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/notify.c')
-rw-r--r-- | source3/smbd/notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 078bc996601..c19982ac3a6 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -419,7 +419,7 @@ void notify_fname(connection_struct *conn, uint32 action, uint32 filter, { struct notify_context *notify_ctx = conn->sconn->notify_ctx; char *fullpath, *to_free; - char tmpbuf[1024]; + char tmpbuf[PATH_MAX]; ssize_t len; if (path[0] == '.' && path[1] == '/') { |