Sync OpenBSD patchset 549:

Don't interpret #() for display-message, it usually doesn't make sense and may
leak commands.
This commit is contained in:
Tiago Cunha
2009-11-19 22:25:52 +00:00
parent a5ae0dc216
commit 563f34477a
5 changed files with 36 additions and 21 deletions

View File

@@ -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);