Cleanse xStrdup mess

This commit is contained in:
Benny Baumann
2020-09-18 20:39:50 +02:00
parent 8b55113ea8
commit 736c496dbf
2 changed files with 2 additions and 10 deletions

View File

@ -67,7 +67,7 @@ int xSnprintf(char* buf, int len, const char* fmt, ...) {
return _n;
}
char* xStrdup_(const char* str) {
char* xStrdup(const char* str) {
char* data = strdup(str);
if (!data) {
fail();