diff src/xrdb.c @ 69913:eddb3cab7138

(gethomedir): Use xstrdup.
author Romain Francoise <romain@orebokech.com>
date Mon, 10 Apr 2006 11:01:29 +0000
parents d7af35bb9874
children 3d45362f1d38 c156f6a9e7b5
line wrap: on
line diff
--- a/src/xrdb.c	Mon Apr 10 09:33:40 2006 +0000
+++ b/src/xrdb.c	Mon Apr 10 11:01:29 2006 +0000
@@ -315,7 +315,7 @@
     }
 
   if (ptr == NULL)
-    return strcpy ((char *) malloc (2), "/");
+    return xstrdup ("/");
 
   copy = (char *) malloc (strlen (ptr) + 2);
   strcpy (copy, ptr);