From 3ddfe876ef9a16fd3d1dc71c23b62cde602a9867 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Mon, 3 Jun 2019 21:34:12 +0200 Subject: [PATCH] make coverity happy --- src/gnsrecord/plugin_gnsrecord_dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c index 52c19b445..636a73403 100644 --- a/src/gnsrecord/plugin_gnsrecord_dns.c +++ b/src/gnsrecord/plugin_gnsrecord_dns.c @@ -660,7 +660,7 @@ dns_string_to_value (void *cls, struct GNUNET_DNSPARSER_CaaRecord *caa; unsigned int flags; char tag[15]; //Max tag length 15 - char value[strlen (s)]; //Should be more than enough + char value[strlen (s) + 1]; //Should be more than enough if (3 != SSCANF (s, "%u %s %[^\n]", &flags, tag, value)) { -- 2.25.1