diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-18 14:48:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-18 14:48:42 +0000 |
commit | dc6271cd79947c020fc21a9d5641de6d576f61f2 (patch) | |
tree | 4dd6920b3201ba486cc4c803cc74d8a799d9178b /cmd-server-info.c | |
parent | 003a2e6479a89320b89611bd05f74797b5533890 (diff) |
Tag a few missed printf-like functions and fix a missing "%s".
Diffstat (limited to 'cmd-server-info.c')
-rw-r--r-- | cmd-server-info.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c index 396d15b0..daa08572 100644 --- a/cmd-server-info.c +++ b/cmd-server-info.c @@ -81,7 +81,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) ctx->print(ctx, "protocol version is %d", PROTOCOL_VERSION); ctx->print(ctx, "%u clients, %u sessions", ARRAY_LENGTH(&clients), ARRAY_LENGTH(&sessions)); - ctx->print(ctx, ""); + ctx->print(ctx, "%s", ""); ctx->print(ctx, "Clients:"); for (i = 0; i < ARRAY_LENGTH(&clients); i++) { @@ -94,7 +94,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) c->session->name, c->tty.sx, c->tty.sy, c->tty.termname, c->flags, c->tty.flags); } - ctx->print(ctx, ""); + ctx->print(ctx, "%s", ""); ctx->print(ctx, "Sessions: [%zu/%zu]", sizeof (struct grid_cell), sizeof (struct grid_utf8)); @@ -142,7 +142,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) } } } - ctx->print(ctx, ""); + ctx->print(ctx, "%s", ""); ctx->print(ctx, "Terminals:"); SLIST_FOREACH(term, &tty_terms, entry) { @@ -174,7 +174,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) } } } - ctx->print(ctx, ""); + ctx->print(ctx, "%s", ""); return (0); } |