From bc92b7d99d4d3a15ae467246bbf45aefe2db0c89 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 3 Oct 2014 01:26:38 +0000 Subject: fix -Wformat-security warning In our case, it was actually harmless because tdb_errorstr only returns trusted data, but the warning is ugly. --- ext/tdb/tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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) -- cgit v1.2.3-24-ge0c7