From 59e2da485ea82fb1ee9f6f565ba5084c41f85143 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Nov 2014 02:37:41 +0100 Subject: small fixes and a bunch of tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/parse-error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mds-kbdc/parse-error.c') diff --git a/src/mds-kbdc/parse-error.c b/src/mds-kbdc/parse-error.c index 1ad5ae1..298c712 100644 --- a/src/mds-kbdc/parse-error.c +++ b/src/mds-kbdc/parse-error.c @@ -82,7 +82,7 @@ void mds_kbdc_parse_error_print(const mds_kbdc_parse_error_t* restrict this, FIL /* Print error information. */ fprintf(output, "\033[01m%s\033[21m:", this->pathname); /* TODO should be relative to the current dir */ if (this->error_is_in_file) - fprintf(output, "%zu:%zu–%zu:", this->line + 1, start + 1, end + 1); + fprintf(output, "%zu:%zu–%zu:", this->line + 1, start, end); switch (this->severity) { case MDS_KBDC_PARSE_ERROR_NOTE: fprintf(output, " \033[01;36mnote:\033[00m "); break; -- cgit v1.2.3-70-g09d2