summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas Boullis <nboullis@debian.org>2010-05-10 07:39:20 +0300
committerMartin-Éric Racine <q-funk@iki.fi>2010-05-10 07:39:20 +0300
commitcf69c8bde21ee383b471ca82d70c179dfaf78722 (patch)
treeb3a99bf99ff5f739b9a83759a209d347abc2e6f9 /src
parentdb01a594ac30c730c580bcf9323220b83eb8ce03 (diff)
Correctly set the name for the user-specified panel mode.
Diffstat (limited to 'src')
-rw-r--r--src/lx_panel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lx_panel.c b/src/lx_panel.c
index 7104384..f1d0686 100644
--- a/src/lx_panel.c
+++ b/src/lx_panel.c
@@ -124,6 +124,7 @@ LXGetManualPanelMode(char *modestr)
sprintf(sname, "%dx%d", hactive, vactive);
mode->name = xnfalloc(strlen(sname) + 1);
+ strcpy(mode->name, sname);
mode->type = M_T_DRIVER | M_T_PREFERRED;
mode->Clock = clock;