summaryrefslogtreecommitdiffstats
path: root/cmd-display-message.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-19 22:25:52 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-19 22:25:52 +0000
commit563f34477a74ecdc7b666269b2837ac5e262b3da (patch)
tree1edb61fcbb8255453c8c1cdb2af50b1385d89eed /cmd-display-message.c
parenta5ae0dc216364b9112d759c2ebe93b4478733929 (diff)
Sync OpenBSD patchset 549:
Don't interpret #() for display-message, it usually doesn't make sense and may leak commands.
Diffstat (limited to 'cmd-display-message.c')
-rw-r--r--cmd-display-message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-display-message.c b/cmd-display-message.c
index 9876fb19..70e398b3 100644
--- a/cmd-display-message.c
+++ b/cmd-display-message.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-display-message.c,v 1.4 2009-11-14 17:56:39 tcunha Exp $ */
+/* $Id: cmd-display-message.c,v 1.5 2009-11-19 22:25:52 tcunha Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -55,7 +55,7 @@ cmd_display_message_exec(struct cmd *self, struct cmd_ctx *ctx)
else
template = data->arg;
- msg = status_replace(c, template, time(NULL));
+ msg = status_replace(c, template, time(NULL), 0);
status_message_set(c, "%s", msg);
xfree(msg);