summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-10 20:53:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-11-10 20:53:02 -0800
commit026f72eda529e6987e7435a857f576a94d323b82 (patch)
tree4637e390e6f340e157cd0df763f5868b8d27b45f
parentf4c34351c5b2b61439b1fcf7f8358b9755d198a3 (diff)
downloadtxr-026f72eda529e6987e7435a857f576a94d323b82.tar.gz
txr-026f72eda529e6987e7435a857f576a94d323b82.tar.bz2
txr-026f72eda529e6987e7435a857f576a94d323b82.zip
Fix circular printing issue for package objects.
* lib.c (obj_print_impl): Print package name using ~a rather than ~s. Otherwise if the string object occurs elsewhere in the structure being printed, we have a problem.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 24b39747..cdc6564b 100644
--- a/lib.c
+++ b/lib.c
@@ -9651,7 +9651,7 @@ dot:
put_string(symbol_name(obj), out);
break;
case PKG:
- format(out, lit("#<package: ~s>"), obj->pk.name, nao);
+ format(out, lit("#<package: ~a>"), obj->pk.name, nao);
break;
case FUN:
{