Avoid redundant strlen() inside libc.
diff --git a/lib/xwrap.c b/lib/xwrap.c
index f16ebe0..65e9f4f 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -104,7 +104,12 @@
 // Die unless we can allocate a copy of this string.
 char *xstrdup(char *s)
 {
-  return xstrndup(s, strlen(s));
+  long len = strlen(s);
+  char *c = xmalloc(++len);
+
+  memcpy(c, s, len);
+
+  return c;
 }
 
 void *xmemdup(void *s, long len)