Skip to content

Commit

Permalink
[Tizen] Fix array size for DNS-SD type name (#19226)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq authored and pull[bot] committed Jun 25, 2022
1 parent aab6d99 commit 1235512
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/Tizen/DnssdImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<DnssdService> services;
Expand All @@ -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;
Expand Down

0 comments on commit 1235512

Please sign in to comment.