CoreFW  Diff

Differences From Artifact [287c38190e]:

To Artifact [cddac8d574]:


57
58
59
60
61
62
63
64

65
66
67
68
69
70
71
72
57
58
59
60
61
62
63

64

65
66
67
68
69
70
71







-
+
-







	size_t len;

	len = strlen(s);

	if ((copy = malloc(len + 1)) == NULL)
		return NULL;

	memcpy(copy, s, len);
	memcpy(copy, s, len + 1);
	copy[len] = 0;

	return copy;
}

char*
cfw_strndup(const char *s, size_t max)
{