aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gnsrecord/plugin_gnsrecord_dns.c2
1 files changed, 1 insertions, 1 deletions
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,
660 struct GNUNET_DNSPARSER_CaaRecord *caa; 660 struct GNUNET_DNSPARSER_CaaRecord *caa;
661 unsigned int flags; 661 unsigned int flags;
662 char tag[15]; //Max tag length 15 662 char tag[15]; //Max tag length 15
663 char value[strlen (s)]; //Should be more than enough 663 char value[strlen (s) + 1]; //Should be more than enough
664 664
665 if (3 != SSCANF (s, "%u %s %[^\n]", &flags, tag, value)) 665 if (3 != SSCANF (s, "%u %s %[^\n]", &flags, tag, value))
666 { 666 {