diff --git a/io/sys/darwin/path.c b/io/sys/darwin/path.c index 55007e7..43c4048 100644 --- a/io/sys/darwin/path.c +++ b/io/sys/darwin/path.c @@ -18,7 +18,7 @@ struct b_path { }; static void path_release(struct b_object *obj); -static void path_to_string(struct b_object *obj, struct b_stringstream *out); +static void path_to_string(struct b_object *obj, struct b_stream *out); static struct b_object_type path_type = { .t_name = "corelib::path", @@ -296,9 +296,9 @@ void path_release(struct b_object *obj) b_string_release(path->pathstr); } -void path_to_string(struct b_object *obj, struct b_stringstream *out) +void path_to_string(struct b_object *obj, struct b_stream *out) { struct b_path *path = (struct b_path *)obj; - b_stringstream_add(out, b_string_ptr(path->pathstr)); + b_stream_write_string(out, b_string_ptr(path->pathstr), NULL); }