summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_dump.c b/vm_dump.c
index d22c652cf0..0759a93fe3 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -565,14 +565,14 @@ rb_vmdebug_thread_dump_state(VALUE self)
}
static int
-bugreport_backtrace(void *arg, const char *file, int line, const char *method)
+bugreport_backtrace(void *arg, VALUE file, int line, VALUE method)
{
if (!*(int *)arg) {
fprintf(stderr, "-- Ruby level backtrace information"
"-----------------------------------------\n");
*(int *)arg = 1;
}
- fprintf(stderr, "%s:%d:in `%s'\n", file, line, method);
+ fprintf(stderr, "%s:%d:in `%s'\n", RSTRING_PTR(file), line, RSTRING_PTR(method));
return 0;
}