[liba] Fix strlcpy test

This commit is contained in:
Léa Saviot
2018-10-15 15:48:08 +02:00
committed by EmilieNumworks
parent d12da1459a
commit 1467d67c0b

View File

@@ -6,7 +6,7 @@ QUIZ_CASE(liba_strlcpy) {
char * t = "Hello";
char buffer[16];
size_t result = strlcpy(buffer, t, 2);
quiz_assert(result == 1);
quiz_assert(result == strlen(t));
quiz_assert(buffer[0] == 'H');
quiz_assert(buffer[1] == NULL);
}