From 01d2366b2ad335dd6bc89332af7120597bd906d1 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Mon, 6 Jun 2022 16:28:58 +0200 Subject: [PATCH] [Tizen] Fix array size for DNS-SD type name (#19226) --- src/platform/Tizen/DnssdImpl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/Tizen/DnssdImpl.h b/src/platform/Tizen/DnssdImpl.h index 05695b7f789586..9f2d2ef0abcee4 100755 --- a/src/platform/Tizen/DnssdImpl.h +++ b/src/platform/Tizen/DnssdImpl.h @@ -44,7 +44,7 @@ struct GenericContext struct RegisterContext : public GenericContext { dnssd_service_h service; - char type[kDnssdTypeMaxSize + kDnssdProtocolTextMaxSize + 1]; + char type[kDnssdTypeAndProtocolMaxSize + 1]; char name[Common::kInstanceNameMaxLength + 1]; uint16_t port; uint32_t interfaceId; @@ -64,7 +64,7 @@ struct RegisterContext : public GenericContext struct BrowseContext : public GenericContext { dnssd_browser_h browser; - char type[kDnssdTypeMaxSize + kDnssdProtocolTextMaxSize + 1]; + char type[kDnssdTypeAndProtocolMaxSize + 1]; uint32_t interfaceId; std::vector services; @@ -89,7 +89,7 @@ struct BrowseContext : public GenericContext struct ResolveContext : public GenericContext { dnssd_service_h service; - char type[kDnssdTypeMaxSize + kDnssdProtocolTextMaxSize + 1]; + char type[kDnssdTypeAndProtocolMaxSize + 1]; char name[Common::kInstanceNameMaxLength + 1]; uint32_t interfaceId; bool isResolving;