diff --git a/io/sys/darwin/path.c b/io/sys/darwin/path.c index 42d3d35..c8f50f9 100644 --- a/io/sys/darwin/path.c +++ b/io/sys/darwin/path.c @@ -379,7 +379,7 @@ void path_to_string(const fx_object *obj, fx_stream *out) { struct fx_path_p *path = fx_object_get_private(obj, FX_TYPE_PATH); - fx_stream_write_string(out, fx_string_ptr(path->p_pathstr), NULL); + fx_stream_write_cstr(out, fx_string_ptr(path->p_pathstr), NULL); } /*** CLASS DEFINITION *********************************************************/