aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/imTrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/imTrans.c')
-rw-r--r--nx-X11/lib/X11/imTrans.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/imTrans.c b/nx-X11/lib/X11/imTrans.c
index a974c0ca3..4c4651599 100644
--- a/nx-X11/lib/X11/imTrans.c
+++ b/nx-X11/lib/X11/imTrans.c
@@ -290,7 +290,7 @@ _XimTransConf(
char *paddr;
TransSpecRec *spec;
- if (!(paddr = (char *)Xmalloc(strlen(address) + 1)))
+ if (!(paddr = strdup(address)))
return False;
if (!(spec = Xcalloc(1, sizeof(TransSpecRec)))) {
@@ -298,7 +298,6 @@ _XimTransConf(
return False;
}
- (void)strcpy(paddr, address);
spec->address = paddr;
im->private.proto.spec = (XPointer)spec;