summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2004-08-13 11:09:25 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2004-08-13 11:09:25 +0000
commit2a06fdedfddad1aad9df8a2675ae71088b7b11b3 (patch)
treec32bc490487f1be48c0fd131f61efb723f86dd55
parent016a13394dc9732afc8c50762ea6cfff1ebcaed1 (diff)
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.c4
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)