From 1df33554382a09aaca4879e4857f42b91ca3bbc6 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 23 Jan 2011 15:49:10 +0000 Subject: [PATCH] While here, maximum percentage is 100 not INT_MAX. Oops. --- cmd-join-pane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);