From 2588e7180974d11a1e9cad19542bfcbfc30a1918 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Mar 2011 14:45:27 +1100 Subject: s3-libsmb: work our correct length for EA strings --- source3/libsmb/clifile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index fcf31561be..6e4cf90e51 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -4214,7 +4214,7 @@ static bool parse_ea_blob(TALLOC_CTX *ctx, const uint8_t *rdata, ea->flags = CVAL(p,0); unix_ea_name[0] = '\0'; - pull_ascii_fstring(unix_ea_name, p + 4); + pull_ascii(unix_ea_name, p + 4, sizeof(unix_ea_name), rdata_len - PTR_DIFF(p+4, rdata), STR_TERMINATE); ea->name = talloc_strdup(ea_list, unix_ea_name); if (!ea->name) { goto fail; -- cgit