Fix typo in define MAX_MAC_ADDR_LEN
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user