ensure POSIX_MQ#name is clobber-proof
commit437cbe78cb0f239e34f9dbf1341f5b85f96f2f25
authorEric Wong <normalperson@yhbt.net>
Sat, 13 Mar 2010 08:22:22 +0000 (13 00:22 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 13 Mar 2010 08:22:22 +0000 (13 00:22 -0800)
treef8f244f5e71fb315d971da021b881567d5f5c425
parent74e1f75b238416d9ac402f291431a5e457ae313f
ensure POSIX_MQ#name is clobber-proof

We don't want folks to accidentally clobber the value for
others, so allocate a new string object for it (don't worry,
rb_str_dup() is cheap in 1.9).
ext/posix_mq/posix_mq.c
test/test_posix_mq.rb