]> granicus.if.org Git - strace/commit
xattr: use printstr_ex instead of print_quoted_string
authorGabriel Laskar <gabriel@lse.epita.fr>
Thu, 22 Dec 2016 15:10:51 +0000 (16:10 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 23:11:02 +0000 (23:11 +0000)
commitdd3548a691dfa8179bf3c1470a9f24127945af8b
treed43abe2488c28c56205e18b4ec84e3ec8f77f19d
parent00265afe4a9fcf604dc46f4deab6414de8ffa302
xattr: use printstr_ex instead of print_quoted_string

This fixes the display when using `-s` to limit the string size
of the values displayed by {get,set}xattr.

* xattr.c (print_xattr_val): Remove static buffer.  Use printstr_ex
instead of print_quoted_string.

Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Gabriel Laskar <gabriel@lse.epita.fr>
xattr.c