ref: caef97a3e1fc28e966e4695b839f173d8f0e30e7
parent: 764e415cacf7d68d3a2a99a66a2cfb100bab6a5a
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Dec 31 23:46:12 EST 2024
print_iostream: fix wrong filename
--- a/iostream.c
+++ b/iostream.c
@@ -8,11 +8,11 @@
static void
print_iostream(value_t v, ios_t *f)
{
- USED(v);
+ ios_t *s = value2c(ios_t*, v);
fl_print_str(f, "#<io stream");
- if(*f->loc.filename){
+ if(*s->loc.filename){
fl_print_chr(f, ' ');
- fl_print_str(f, f->loc.filename);
+ fl_print_str(f, s->loc.filename);
}
fl_print_chr(f, '>');
}