diff options
author | 2004-08-13 11:09:24 +0000 | |
---|---|---|
committer | 2004-08-13 11:09:24 +0000 | |
commit | bc768d6ffed524bd39ea6de7462e93ec0edc51b0 (patch) | |
tree | a3c2c56118447c62c2b43177d7a3a335d986b729 | |
parent | More nasty cases involving back references. (diff) | |
download | wireguard-openbsd-bc768d6ffed524bd39ea6de7462e93ec0edc51b0.tar.xz wireguard-openbsd-bc768d6ffed524bd39ea6de7462e93ec0edc51b0.zip |
Fix line numbers off-by-one in error messages, from tortay at cc.in2p3.fr
ok markus@, djm@
-rw-r--r-- | usr.bin/ssh/servconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/servconf.c b/usr.bin/ssh/servconf.c index 54d9c217ba7..4aa95daecea 100644 --- a/usr.bin/ssh/servconf.c +++ b/usr.bin/ssh/servconf.c @@ -10,7 +10,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: servconf.c,v 1.136 2004/08/11 11:09:54 dtucker Exp $"); +RCSID("$OpenBSD: servconf.c,v 1.137 2004/08/13 11:09:24 dtucker Exp $"); #include "ssh.h" #include "log.h" @@ -938,7 +938,7 @@ parse_server_config(ServerOptions *options, const char *filename, Buffer *conf) debug2("%s: config %s len %d", __func__, filename, buffer_len(conf)); obuf = cbuf = xstrdup(buffer_ptr(conf)); - linenum = 0; + linenum = 1; while((cp = strsep(&cbuf, "\n")) != NULL) { if (process_server_config_line(options, cp, filename, linenum++) != 0) |