redis plugin: fix issue found by master aggregation tests
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 28 May 2018 14:03:02 +0000 (21:03 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 28 May 2018 14:03:02 +0000 (21:03 +0700)
src/redis.c

index 6aee49b..5734098 100644 (file)
@@ -382,7 +382,7 @@ static int redis_db_stats(char *node, char const *info_line) /* {{{ */
   for (int db = 0; db < REDIS_DEF_DB_COUNT; db++) {
     static char buf[MAX_REDIS_VAL_SIZE];
     static char field_name[12];
-    static char db_id[3];
+    static char db_id[4];
     value_t val;
     char *str;
     int i;