if (s == NULL)
return NULL;
- if ((d = malloc (strlen (s) + 1)) == NULL) /* __MEM_CHECKED__ */
+ if ((d = malloc (str_len (s) + 1)) == NULL) /* __MEM_CHECKED__ */
return NULL;
- memcpy (d, s, strlen (s) + 1);
+ memcpy (d, s, str_len (s) + 1);
return d;
}