aboutsummaryrefslogtreecommitdiff
path: root/cmd-show-buffer.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-20 11:35:16 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-20 11:35:16 +0000
commit52b02850ca960f5f540176036200a83ca73f1267 (patch)
tree50dcead8641361e8336b3614e43b78cea8ee3198 /cmd-show-buffer.c
parent7ca3d7ac8ef68cffcd18b64558ae3c7c00875479 (diff)
downloadrtmux-52b02850ca960f5f540176036200a83ca73f1267.tar.gz
rtmux-52b02850ca960f5f540176036200a83ca73f1267.tar.bz2
rtmux-52b02850ca960f5f540176036200a83ca73f1267.zip
Sync OpenBSD patchset 270:
Tag a few missed printf-like functions and fix a missing "%s".
Diffstat (limited to 'cmd-show-buffer.c')
-rw-r--r--cmd-show-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-show-buffer.c b/cmd-show-buffer.c
index 0496bbfb..58634f42 100644
--- a/cmd-show-buffer.c
+++ b/cmd-show-buffer.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-show-buffer.c,v 1.8 2009-08-20 11:33:13 tcunha Exp $ */
+/* $Id: cmd-show-buffer.c,v 1.9 2009-08-20 11:35:16 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -93,7 +93,7 @@ cmd_show_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
if (len != 0) {
buf[len] = '\0';
- ctx->print(ctx, buf);
+ ctx->print(ctx, "%s", buf);
}
xfree(buf);