write_mongodb: fix build warning
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 20:12:18 +0000 (22:12 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 20:12:18 +0000 (22:12 +0200)
commitf81a5a84d3d5fc941b624c28b1ab70971cc23ac9
tree9181ade780624e0ddba1a5eaad1a3716bc40338e
parent3e5eb5fbbd3881150f407a4877faa1377aeef50d
write_mongodb: fix build warning

  CC       src/write_mongodb_la-write_mongodb.lo
src/write_mongodb.c: In function ‘wm_config’:
src/write_mongodb.c:371:55: warning: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 114 [-Wformat-truncation=]
     snprintf(cb_name, sizeof(cb_name), "write_mongodb/%s", node->name);
                                                       ^~
src/write_mongodb.c:371:5: note: ‘snprintf’ output between 15 and 142 bytes into a destination of size 128
     snprintf(cb_name, sizeof(cb_name), "write_mongodb/%s", node->name);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/write_mongodb.c