test: test_launch_get(): Fix typo and remove redundant call

Esse commit está contido em:
Albert S. 2022-12-27 13:14:39 +01:00
commit f662398ac3
1 arquivos alterados com 2 adições e 2 exclusões

4
test.c
Ver arquivo

@ -618,9 +618,9 @@ int test_launch_get()
size_t n = 0;
char *content = exile_launch_get(&params, &n);
unsigned int len = strlen(LAUNCH_GET_TEST_STR);
if(n != strlen(LAUNCH_GET_TEST_STR))
if(n != len)
{
LOG("Lenght does does not match: %lu vs %u\n", n, len);
LOG("Lenght does not match: %lu vs %u\n", n, len);
return 1;
}
if(strcmp(content, LAUNCH_GET_TEST_STR) != 0)