From 51dc79f87e7587f48acdd8d16ec41f2c6373edfb Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 26 Jul 2008 06:49:19 +0000 Subject: [PATCH] (print_object): Fix off-by-one in last change. --- src/ChangeLog | 4 ++++ src/print.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3e592022db6..517984d25ef 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-07-26 Andreas Schwab + + * print.c (print_object): Fix off-by-one in last change. + 2008-07-25 Juanma Barranquero * term.c (syms_of_term): Don't initialize default_orig_pair, diff --git a/src/print.c b/src/print.c index dc4c40aabab..b9d2e12be15 100644 --- a/src/print.c +++ b/src/print.c @@ -1561,7 +1561,7 @@ print_object (obj, printcharfun, escapeflag) QUIT; /* See similar code in print_preprocess. */ - if (print_depth > PRINT_CIRCLE) + if (print_depth >= PRINT_CIRCLE) error ("Apparently circular structure being printed"); /* Detect circularities and truncate them. */ -- 2.39.2