Merge branch 'UDP-broadcast' of https://github.com/Sani7/2023-Webservices_And_Applications into UDP-broadcast

This commit is contained in:
joran2738
2023-11-23 12:02:04 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
#define MAX_NAME_SIZE 20
#define MAX_REPLY_SIZE 120
#define MAX_MAX_ADDR_LEN 18
#define MAX_MAC_ADDR_LEN 18
#define MAX_EXTRA_REPLY_CHARS 27

View File

@@ -116,7 +116,7 @@ static uint8_t udp_broadcast_set_owner_details_reply(const char* reply) {
static void udp_broadcast_format_reply(void) {
size_t reply_len = 0;
char mac_addr_str[MAX_MAX_ADDR_LEN];
char mac_addr_str[MAX_MAC_ADDR_LEN];
char reply_buf[MAX_REPLY_SIZE];
reply_len = MAX_EXTRA_REPLY_CHARS + sizeof(mac_addr_str) + sizeof(udp_owner.surname) + sizeof(udp_owner.name);