@ -37,7 +37,7 @@ SOFTWARE.
char* strndup(const char* s, size_t n)
{
size_t len = strnlen(s, n);
char* p = malloc(s, len+1);
char* p = malloc(len+1);
if (p) {
memcpy(p, s, len);
p[len] = 0;