diff options
-rw-r--r-- | gc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1893,10 +1893,11 @@ ruby_external_gc_init() char *gc_so_path = getenv("RUBY_GC_LIBRARY_PATH"); void *handle = NULL; if (gc_so_path) { - char error[128]; + char error[1024]; handle = dln_open(gc_so_path, error, sizeof(error)); if (!handle) { - rb_bug("ruby_external_gc_init: Shared library %s cannot be opened (%s)", gc_so_path, error); + fprintf(stderr, "%s", error); + rb_bug("ruby_external_gc_init: Shared library %s cannot be opened", gc_so_path); } } |