summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2004-07-11 23:46:18 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2004-07-11 23:46:18 +0000
commite97384facece63d62be2b3114980bf848f685059 (patch)
treec7d7e25db43b46f8faa9b2489ca75402a2e1995e /usr.bin
parent4b642729ea4cedea258647ded00ec067501e9df0 (diff)
oops
I just realized I gave a really bad advise to pval, negative goto-line are entirely valid (mean # of lines from end of file) go back to INT_MIN as the lower bound
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index c129b766eff..49b916effc8 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.31 2004/07/11 20:37:15 pvalchev Exp $ */
+/* $OpenBSD: main.c,v 1.32 2004/07/11 23:46:17 vincent Exp $ */
/*
* Mainline.
@@ -92,7 +92,7 @@ main(int argc, char **argv)
int lval;
const char *errstr;
- lval = strtonum(&argv[i][1], 0, INT_MAX, &errstr);
+ lval = strtonum(&argv[i][1], INT_MIN, INT_MAX, &errstr);
if (argv[i][1] == '\0' || *errstr != '\0')
goto notnum;
startrow = lval;