We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3254e21 commit 72b4e39Copy full SHA for 72b4e39
plugins/out_datadog/datadog.c
@@ -179,8 +179,9 @@ static int datadog_format(struct flb_config *config,
179
msgpack_unpacked_destroy(&result);
180
return -1;
181
}
182
- } else if (flb_sds_len(remapped_tags) < byte_cnt) {
183
- tmp = flb_sds_increase(remapped_tags, flb_sds_len(remapped_tags) - byte_cnt);
+ }
+ else if (flb_sds_len(remapped_tags) < byte_cnt) {
184
+ tmp = flb_sds_increase(remapped_tags, byte_cnt - flb_sds_len(remapped_tags));
185
if (!tmp) {
186
flb_errno();
187
flb_sds_destroy(remapped_tags);
0 commit comments