use `estrndup` or `estrdup` instead. :)