diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-01-25 21:11:34 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-01-31 17:39:53 +0100 |
commit | 405c9b96cb639da9ff910f0bcafe810e8f58e2e5 (patch) | |
tree | 19c141de37d96719f555116c5dc57b89f867bd12 /libc/stdlib/atoi.c | |
parent | d9c3a16dcab57d6b56225b9a67e9119cc9e2e4ac (diff) |
Make sure to always terminate decoded string
Write a terminating '\0' to dest when the first byte of the encoded data
is 0. This corner case was previously missed.
Signed-off-by: Daniel Fahlgren <daniel@fahlgren.se>
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'libc/stdlib/atoi.c')
0 files changed, 0 insertions, 0 deletions