From: Schanzenbach, Martin Date: Mon, 3 Jun 2019 19:34:12 +0000 (+0200) Subject: make coverity happy X-Git-Tag: v0.11.5~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ddfe876ef9a16fd3d1dc71c23b62cde602a9867;p=oweals%2Fgnunet.git make coverity happy --- 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)) {