summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 0e51315..2ec3615 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -766,8 +766,10 @@ rb_vm_bugreport(void)
LIMITED_NAME_LENGTH(name), RSTRING_PTR(name));
}
else {
- fprintf(stderr, " %4d #<%s:%p>\n", i,
- rb_class2name(CLASS_OF(name)), (void *)name);
+ VALUE klass = rb_class_name(CLASS_OF(name));
+ fprintf(stderr, " %4d #<%.*s:%p>\n", i,
+ LIMITED_NAME_LENGTH(klass), RSTRING_PTR(klass),
+ (void *)name);
}
}
fprintf(stderr, "\n");