summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-06-03 19:00:07 -0400
committerjakob <jakob@memeware.net>2017-06-03 19:00:07 -0400
commit17b658ceadd08d693f23448c276958e2eea5970e (patch)
tree8d0f62709646de856373a0ffa4fc2513f717f770 /test
parent6adad1bfad91274aad030cf6167c1f19fb602d62 (diff)
Fully working repacker, no bugs related to the encoded output being larger than the buffer, and filenames are properly encoded.
Diffstat (limited to 'test')
-rw-r--r--test/test_encoding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_encoding.c b/test/test_encoding.c
index a167359..bd63426 100644
--- a/test/test_encoding.c
+++ b/test/test_encoding.c
@@ -27,6 +27,7 @@
char *test_decode_utf16le(void) {
char *in = "\x41\x00\x42\x00\x43\x00\x00\x00", *out = malloc(8);
+ memset(out, '\xff', 8);
utf16le_decode(in, out, 8);
mu_assert("UTF16-LE decoding failure", !strcmp(out, "ABC"));
free(out);