While here, maximum percentage is 100 not INT_MAX. Oops.

pull/1/head
Nicholas Marriott 2011-01-23 15:49:10 +00:00
parent 8820aa9f65
commit 1df3355438
1 changed files with 1 additions and 1 deletions

View File

@ -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);