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>
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;
{
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] == '/') {