diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 3abc0d065c..bb24db9ee1 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -4168,7 +4168,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd case SMB_QUERY_FILE_UNIX_LINK: { - char *buffer = TALLOC_ARRAY(ctx, char, 1024); + char *buffer = TALLOC_ARRAY(ctx, char, PATH_MAX+1); if (!buffer) { reply_nterror(req, NT_STATUS_NO_MEMORY); @@ -4187,7 +4187,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd return; #endif len = SMB_VFS_READLINK(conn,fullpathname, - buffer, 1023); + buffer, PATH_MAX); if (len == -1) { reply_unixerror(req, ERRDOS, ERRnoaccess); |