summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-12-30 14:16:44 +0000
committerTiago Cunha <tcunha@gmx.com>2011-12-30 14:16:44 +0000
commitf9b4095188b8795785f540f4cbce4ac4ec0db131 (patch)
tree68ca80703a25b0f6e10781f0d9f68c5f17cb6e61
parentd1f01386537b2c1583653b36edc3026cc901250f (diff)
Sync OpenBSD patchset 991:
Extend history that can be captured to INT_MIN rather than SHRT_MIN. From Chris Johnsen.
-rw-r--r--cmd-capture-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index 9f2d792a..52fc792e 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -59,7 +59,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
buf = NULL;
len = 0;
- n = args_strtonum(args, 'S', SHRT_MIN, SHRT_MAX, &cause);
+ n = args_strtonum(args, 'S', INT_MIN, SHRT_MAX, &cause);
if (cause != NULL) {
top = gd->hsize;
xfree(cause);
@@ -70,7 +70,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
if (top > gd->hsize + gd->sy - 1)
top = gd->hsize + gd->sy - 1;
- n = args_strtonum(args, 'E', SHRT_MIN, SHRT_MAX, &cause);
+ n = args_strtonum(args, 'E', INT_MIN, SHRT_MAX, &cause);
if (cause != NULL) {
bottom = gd->hsize + gd->sy - 1;
xfree(cause);