summaryrefslogtreecommitdiff
path: root/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'err.c')
-rw-r--r--err.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/err.c b/err.c
index f2b51aa..fdebbfc 100644
--- a/err.c
+++ b/err.c
@@ -79,7 +79,7 @@ static void warn_print_header_(Location where) {
}
static void err_print_location_text(Location where) {
- const char *text = where.code;
+ const char *text = where.ctx->str + where.pos;
const char *end = strchr(text, '\n');
int has_newline = end != NULL;
if (!has_newline)