#include <ccan/tap/tap.h>
#include "helper.h"
-int main(int argc, char *argv[])
+int main(void)
{
char *str, *copy;
- plan_tests(1);
+ plan_tests(2);
str = malloc(5);
memcpy(str, "hello", 5);
/* We should be fine to strndup src without nul terminator. */
copy = tal_strndup(NULL, str, 5);
ok1(!strcmp(copy, "hello"));
+ ok1(tal_count(copy) == strlen(copy) + 1);
tal_free(copy);
free(str);