diff options
-rw-r--r-- | usr.bin/mg/basic.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/extend.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/mg/basic.c b/usr.bin/mg/basic.c index b463dc74835..8c90f17054b 100644 --- a/usr.bin/mg/basic.c +++ b/usr.bin/mg/basic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: basic.c,v 1.12 2002/03/11 13:02:56 vincent Exp $ */ +/* $OpenBSD: basic.c,v 1.13 2002/03/11 13:08:51 vincent Exp $ */ /* * Basic cursor motion commands. @@ -446,7 +446,7 @@ gotoline(int f, int n) if (!(f & FFARG)) { if ((s = ereply("Goto line: ", buf, sizeof(buf))) != TRUE) return s; - errno = 0; + nl = strtol(buf, &tmp, 10); if (buf[0] == '\0' || *tmp != '\0') { ewprintf("Invalid number"); diff --git a/usr.bin/mg/extend.c b/usr.bin/mg/extend.c index 45af82af5d7..e14821aeb9b 100644 --- a/usr.bin/mg/extend.c +++ b/usr.bin/mg/extend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: extend.c,v 1.23 2002/03/11 13:02:56 vincent Exp $ */ +/* $OpenBSD: extend.c,v 1.24 2002/03/11 13:08:51 vincent Exp $ */ /* * Extended (M-X) commands, rebinding, and startup file processing. @@ -699,7 +699,6 @@ excline(char *line) } if (argp != NULL) { f = FFARG; - errno = 0; nl = strtol(argp, &tmp, 10); if (*tmp != '\0') return FALSE; |