From fe51150452ef2aa55add52dd6fbee6ec1960ca66 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 24 Nov 2014 15:00:45 +0100 Subject: [PATCH] write_redis: pass a literal string to snprintf() This corrects the following compiler warning when building with "-Werror=format-security" (the default when building debian packages): write_redis.c:91:3: error: format not a string literal and no format arguments --- src/write_redis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/write_redis.c b/src/write_redis.c index b47650d1..b4c5e212 100644 --- a/src/write_redis.c +++ b/src/write_redis.c @@ -88,8 +88,7 @@ static int wr_write (const data_set_t *ds, /* {{{ */ } \ } while (0) - APPEND (time); - APPEND (":"); + APPEND ("%s:", time); for (i = 0; i < ds->ds_num; i++) { -- 2.11.0