--- sourceforge.net/trunk/rdesktop/xkeymap.c 2005/08/04 12:44:10 973 +++ sourceforge.net/trunk/rdesktop/xkeymap.c 2005/08/04 12:50:15 974 @@ -166,12 +166,7 @@ FILE *fp; /* Create a working copy */ - str = strdup(locale); - if (str == NULL) - { - perror("strdup"); - exit(1); - } + str = xstrdup(locale); /* Truncate at dot and at */ ptr = strrchr(str, '.');