summaryrefslogtreecommitdiff
path: root/test/string/test-ffs.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-01-25 21:11:34 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-31 17:39:53 +0100
commit405c9b96cb639da9ff910f0bcafe810e8f58e2e5 (patch)
tree19c141de37d96719f555116c5dc57b89f867bd12 /test/string/test-ffs.c
parentd9c3a16dcab57d6b56225b9a67e9119cc9e2e4ac (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 'test/string/test-ffs.c')
0 files changed, 0 insertions, 0 deletions