about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-10-03 01:26:38 +0000
committerEric Wong <normalperson@yhbt.net>2014-10-03 02:02:19 +0000
commitbc92b7d99d4d3a15ae467246bbf45aefe2db0c89 (patch)
treeb09c01d24940e62ae0383ef8a0910dbbc7157578
parent3b3e4c74fe0e05cd681c332ca4498cf3505662ce (diff)
downloadruby-tdb-bc92b7d99d4d3a15ae467246bbf45aefe2db0c89.tar.gz
In our case, it was actually harmless because tdb_errorstr
only returns trusted data, but the warning is ugly.
-rw-r--r--ext/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tdb/tdb.c b/ext/tdb/tdb.c
index c108c38..2818a34 100644
--- a/ext/tdb/tdb.c
+++ b/ext/tdb/tdb.c
@@ -71,7 +71,7 @@ static void my_raise(struct tdb_context *tdb)
         }
         if (NIL_P(exc))
                 rb_bug("no-existent exception: %s\n", str);
-        rb_raise(exc, str);
+        rb_raise(exc, "%s", str);
 }
 
 static void init_hashes(void)