diff options
Diffstat (limited to 'ext/posix_mq/posix_mq.c')
-rw-r--r-- | ext/posix_mq/posix_mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index 80943fb..d9abf1e 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -685,7 +685,7 @@ static VALUE name(VALUE self) { struct posix_mq *mq = get(self, 0); - return mq->name; + return rb_str_dup(mq->name); } static int lookup_sig(VALUE sig) |