listxattr: fix space calculation leading to assertion failure
listxattr_iterator():
* out-of-space calculation should use "n" to determine the bump
in l->size for reporting future space usage.
dav_listxattr():
* there is no need to subtract one byte from size when setting
l.space, snprintf() already accounts for the terminating
null-byte in its buffer and size arguments.
* snprintf() will already null-terminate as will
"memcpy(l.list, MIME_XATTR, sizeof(MIME_XATTR))",
so there is no need to explicitly terminate l.list.
* There is no need to add one byte to l.size in the return
value, all of the previous space/buffer calculations account
for the trailing null byte.
This is a possible fix for http://bugs.debian.org/514330
(fusedav: Fails to copy remote). However, I needed "cp -a"
instead of plain "cp" to replicate the issue.