summaryrefslogtreecommitdiffstats
path: root/cmd-show-buffer.c
authortcunha <tcunha>2009-08-20 11:35:16 (GMT)
committer tcunha <tcunha>2009-08-20 11:35:16 (GMT)
commit35a27350e54b100dbdffe33ec8a5d888df0ac573 (patch) (side-by-side diff)
tree292b1af08d7bc7b633a22edb93bae7adb4a7e460 /cmd-show-buffer.c
parent1dee0057da3c341641af397611b5ac8ec977eed1 (diff)
downloadtmux-old-35a27350e54b100dbdffe33ec8a5d888df0ac573.zip
tmux-old-35a27350e54b100dbdffe33ec8a5d888df0ac573.tar.gz
tmux-old-35a27350e54b100dbdffe33ec8a5d888df0ac573.tar.bz2
Sync OpenBSD patchset 270:
Tag a few missed printf-like functions and fix a missing "%s".
Diffstat (limited to 'cmd-show-buffer.c') (more/less context) (ignore whitespace changes)
-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 5f4013a..93d7dc2 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 <[email protected]>
@@ -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);