summaryrefslogtreecommitdiff
path: root/xwud.c
diff options
context:
space:
mode:
Diffstat (limited to 'xwud.c')
-rw-r--r--xwud.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/xwud.c b/xwud.c
index 0625f3a..9c6808c 100644
--- a/xwud.c
+++ b/xwud.c
@@ -376,9 +376,7 @@ main(int argc, char *argv[])
mask = VisualScreenMask;
if (vis)
{
- char *vt;
- vt = malloc(strlen(vis) + 1);
- strcpy(vt, vis);
+ char *vt = strdup(vis);
Latin1Upper(vt);
if (strcmp(vt, "STATICGRAY") == 0) {
vinfo.class = StaticGray;