diff options
-rw-r--r-- | ext/clogger_ext/clogger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c index ad37d7d..1641f48 100644 --- a/ext/clogger_ext/clogger.c +++ b/ext/clogger_ext/clogger.c @@ -891,7 +891,7 @@ static VALUE to_path(VALUE self) struct stat sb; int rv; unsigned devfd; - const char *cpath = StringValuePtr(path); + const char *cpath = StringValueCStr(path); /* try to avoid an extra path lookup */ if (rb_respond_to(c->body, to_io_id)) |