diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-06-10 08:08:31 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-06-10 08:08:31 +0100 |
commit | 747423be6731b700cb53186a943d51cc2275d101 (patch) | |
tree | dcc11c757c64246efa3064362e0040e83acde5ea /cmd-show-prompt-history.c | |
parent | 607e6b1c3339b97408be3d6c2c93a82fcee5251a (diff) | |
download | rtmux-747423be6731b700cb53186a943d51cc2275d101.tar.gz rtmux-747423be6731b700cb53186a943d51cc2275d101.tar.bz2 rtmux-747423be6731b700cb53186a943d51cc2275d101.zip |
Fix empty format strings, from Jean-Philippe Menil.
Diffstat (limited to 'cmd-show-prompt-history.c')
-rw-r--r-- | cmd-show-prompt-history.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-show-prompt-history.c b/cmd-show-prompt-history.c index 5711755e..2091ac9d 100644 --- a/cmd-show-prompt-history.c +++ b/cmd-show-prompt-history.c @@ -87,7 +87,7 @@ cmd_show_prompt_history_exec(struct cmd *self, struct cmdq_item *item) cmdq_print(item, "%d: %s", hidx + 1, status_prompt_hlist[tidx][hidx]); } - cmdq_print(item, ""); + cmdq_print(item, "%s", ""); } } else { type = status_prompt_type(typestr); @@ -101,7 +101,7 @@ cmd_show_prompt_history_exec(struct cmd *self, struct cmdq_item *item) cmdq_print(item, "%d: %s", hidx + 1, status_prompt_hlist[type][hidx]); } - cmdq_print(item, ""); + cmdq_print(item, "%s", ""); } return (CMD_RETURN_NORMAL); |