daemon: fix off-by-one in logging extended attributes