Skip to content
Commit 08d2024b authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

string: Simplify strerror_r



Use snprintf instead of mempcpy plus itoa_word and remove unused
definitions.  There is no potential for infinite recursion because
snprintf only use strerror_r for the %m specifier.

Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
and s390x-linux-gnu.

Tested-by: default avatarCarlos O'Donell <carlos@redhat.com>
Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent 725eeb4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment