diff options
Diffstat (limited to 'xwrap.c')
| -rw-r--r-- | xwrap.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -17,7 +17,11 @@ char *xstrdup(const char *s) { int len; + if (s == NULL) + return NULL; + len = strlen(s) + 1; + return memcpy(xmalloc(len), s, len); } |
