summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jim.c b/src/jim.c
index be53233c..c1434dbb 100644
--- a/src/jim.c
+++ b/src/jim.c
@@ -11994,7 +11994,7 @@ void Jim_PrintErrorMessage(Jim_Interp *interp)
Jim_fprintf(interp,interp->cookie_stderr, " %s" JIM_NL,
Jim_GetString(interp->result, NULL));
Jim_ListLength(interp, interp->stackTrace, &len);
- for (i = 0; i < len; i+= 3) {
+ for (i = len-3; i >= 0; i-= 3) {
Jim_Obj *objPtr;
const char *proc, *file, *line;