From e172c89783326e2378e4793ff31a0f44210c5534 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 11 Sep 2010 08:41:00 +0000 Subject: xserver git update 11/9/2010 --- xorg-server/Xi/extinit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xorg-server/Xi') diff --git a/xorg-server/Xi/extinit.c b/xorg-server/Xi/extinit.c index 58943f08d..dd72ee2b0 100644 --- a/xorg-server/Xi/extinit.c +++ b/xorg-server/Xi/extinit.c @@ -1154,8 +1154,7 @@ void AssignTypeAndName(DeviceIntPtr dev, Atom type, char *name) { dev->xinput_type = type; - dev->name = (char *)malloc(strlen(name) + 1); - strcpy(dev->name, name); + dev->name = strdup(name); } /*********************************************************************** -- cgit v1.2.3