summaryrefslogtreecommitdiffstats
path: root/cmd-join-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-01-23 15:49:10 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-01-23 15:49:10 +0000
commit1df33554382a09aaca4879e4857f42b91ca3bbc6 (patch)
tree8016c0ce6bc723e8ee51969cb4a9c08aa95991f6 /cmd-join-pane.c
parent8820aa9f6511cb245dd8c735294e7a0c6fdb0870 (diff)
While here, maximum percentage is 100 not INT_MAX. Oops.
Diffstat (limited to 'cmd-join-pane.c')
-rw-r--r--cmd-join-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-join-pane.c b/cmd-join-pane.c
index be4335fc..0bfefd2f 100644
--- a/cmd-join-pane.c
+++ b/cmd-join-pane.c
@@ -97,7 +97,7 @@ cmd_join_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
return (-1);
}
} else if (args_has(args, 'p')) {
- percentage = args_strtonum(args, 'p', 0, INT_MAX, &cause);
+ percentage = args_strtonum(args, 'p', 0, 100, &cause);
if (cause != NULL) {
ctx->error(ctx, "percentage %s", cause);
xfree(cause);