Update hal_tcp_module.c

Mini optimized
This commit is contained in:
David Lin 2020-06-28 16:43:26 +08:00 committed by GitHub
parent a5c7a347fa
commit 82288e55f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ int hal_tcp_connect(const char *host, uint16_t port)
char port_str[PORT_MAX] = { 0 };
#define IP_MAX 16
char ip[16] = { 0 };
char ip[IP_MAX] = { 0 };
snprintf(port_str, PORT_MAX, "%u", port);