summaryrefslogtreecommitdiff
path: root/usr.bin/mg/main.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-10-13 20:41:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-10-13 20:41:10 +0000
commit4209cf304d6072fcdae969596403437ee3228215 (patch)
tree7f9fce9110d1ff8eebfa491171981e6d826bf146 /usr.bin/mg/main.c
parent5b785c25202e85d954c1248ca4dc16276ff3aa62 (diff)
use strtonum() correctly
Diffstat (limited to 'usr.bin/mg/main.c')
-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 8aeae100bc3..ead05ff3171 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.42 2005/10/13 05:47:45 kjell Exp $ */
+/* $OpenBSD: main.c,v 1.43 2005/10/13 20:41:09 deraadt Exp $ */
/* This file is in the public domain. */
@@ -103,7 +103,7 @@ main(int argc, char **argv)
for (nfiles = 0, i = 0; i < argc; i++) {
if (argv[i][0] == '+' && strlen(argv[i]) >= 2) {
- int lval;
+ long long lval;
const char *errstr;
lval = strtonum(&argv[i][1], INT_MIN, INT_MAX, &errstr);