diff options
Diffstat (limited to 'tests/aplwc_utf8.c')
| -rw-r--r-- | tests/aplwc_utf8.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/aplwc_utf8.c b/tests/aplwc_utf8.c index a575da6..316845d 100644 --- a/tests/aplwc_utf8.c +++ b/tests/aplwc_utf8.c @@ -17,12 +17,11 @@ uint8_t good4[] = {0xe6,0x97,0xa5,0xe6,0x9c,0xac,0xe8,0xaa,0x9e,0}; uint8_t good5[] = {0xef,0xbb,0xbf,0xf0,0xa3,0x8e,0xb4,0}; static void * -my_alloc(size_t min, size_t max, size_t *actual) +my_alloc(size_t size, size_t *actual) { - (void)max; - - *actual = min; - return malloc(min); + if(actual) + *actual = size; + return malloc(size); } static void |