]> granicus.if.org Git - strace/commit
printstr_ex: handle QUOTE_0_TERMINATED bit consistently
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 19 Nov 2016 21:01:03 +0000 (21:01 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 19 Nov 2016 21:01:03 +0000 (21:01 +0000)
commit03d65a05b9f31b26573a8282d2da9f15c602a6cd
tree05b63bdc7602d79d5dc725b54998e3bb05bdee0a
parentead746af18c2a4304320e9421eab646e052bfd43
printstr_ex: handle QUOTE_0_TERMINATED bit consistently

When user_style has QUOTE_0_TERMINATED bit set, printstr_ex prints
the fetched string as a NUL-terminated.
After this change, the string is being fetched as a NUL-terminated, too.

* util.c (printstr_ex): Use umovestr instead of umoven
if QUOTE_0_TERMINATED bit is set.
util.c