summaryrefslogtreecommitdiffstats
path: root/lib/skin_parser/skin_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_debug.c')
-rw-r--r--lib/skin_parser/skin_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/skin_parser/skin_debug.c b/lib/skin_parser/skin_debug.c
index 43cd746253..ff26819bc0 100644
--- a/lib/skin_parser/skin_debug.c
+++ b/lib/skin_parser/skin_debug.c
@@ -322,7 +322,7 @@ void skin_error_format_message(void)
text[i++] = '.';
text[i++] = '.';
text[i++] = '.';
- for (j=error_col-10; error_line_start[j] && error_line_start[j] != '\n'; j++)
+ for (j=error_col-10; j < len && error_line_start[j] && error_line_start[j] != '\n'; j++)
text[i++] = error_line_start[j];
text[i] = '\0';
error_col = 18;