diff options
author | Thomas Adam <thomas@xteddy.org> | 2013-05-25 11:48:12 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2013-05-25 11:48:12 +0100 |
commit | 76cb088d16fd5aa47b54428368ef403cbbcf4f5a (patch) | |
tree | 3dd07bcc1e7aa513dbd7ecd38c3569e7b7a4e890 /cmd.c | |
parent | 907ad00300506c25ee84223811e25a411dc21517 (diff) | |
parent | 88a4da97478ec6b4b2f361315a5a183333d0aa3f (diff) | |
download | rtmux-76cb088d16fd5aa47b54428368ef403cbbcf4f5a.tar.gz rtmux-76cb088d16fd5aa47b54428368ef403cbbcf4f5a.tar.bz2 rtmux-76cb088d16fd5aa47b54428368ef403cbbcf4f5a.zip |
Merge branch 'obsd-master'
Conflicts:
tmux.h
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -294,8 +294,8 @@ cmd_print(struct cmd *cmd, char *buf, size_t len) size_t off, used; off = xsnprintf(buf, len, "%s ", cmd->entry->name); - if (off < len) { - used = args_print(cmd->args, buf + off, len - off); + if (off + 1 < len) { + used = args_print(cmd->args, buf + off, len - off - 1); if (used == 0) off--; else |