summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-14 16:30:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-14 16:30:13 +0000
commite03bd9b72792f93b1445d212e3ae829a75f311a4 (patch)
treea9663f25b0b77a22ce4d3c1b9c4a0e537f064dd1 /src/fe-common
parentd25bb43043504fbd50d56e470bc4ab758ab51036 (diff)
downloadirssi-e03bd9b72792f93b1445d212e3ae829a75f311a4.zip
/EXEC -interactive : only numbered /execs should have the % prefix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2680 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-exec.c b/src/fe-common/core/fe-exec.c
index bfc75465..ad018aa7 100644
--- a/src/fe-common/core/fe-exec.c
+++ b/src/fe-common/core/fe-exec.c
@@ -67,8 +67,7 @@ static EXEC_WI_REC *exec_wi_create(WINDOW_REC *window, PROCESS_REC *rec)
item = g_new0(EXEC_WI_REC, 1);
item->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "EXEC");
item->destroy = (void (*) (WI_ITEM_REC *)) exec_wi_destroy;
- item->name = rec->name != NULL ?
- g_strdup_printf("%%%s", rec->name) :
+ item->name = rec->name != NULL ? g_strdup(rec->name) :
g_strdup_printf("%%%d", rec->id);
item->createtime = time(NULL);