diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-05-14 18:14:43 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-07 14:10:58 -0300 |
commit | 08d2024b4167913623cefcceb2fec6e483972868 (patch) | |
tree | db82591a513435dacebe046d260f024857a86e03 /misc/bug18240.c | |
parent | 725eeb4af14c6fec4ed26a796cdfd6d50df86d42 (diff) | |
download | glibc-08d2024b4167913623cefcceb2fec6e483972868.tar.gz glibc-08d2024b4167913623cefcceb2fec6e483972868.tar.xz glibc-08d2024b4167913623cefcceb2fec6e483972868.zip |
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: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'misc/bug18240.c')
0 files changed, 0 insertions, 0 deletions