cmdmon: change name fields to unsigned type

This commit is contained in:
Miroslav Lichvar
2020-08-17 16:27:54 +02:00
parent 97a8b1e43b
commit 2127f63961
2 changed files with 3 additions and 3 deletions

View File

@@ -2076,7 +2076,7 @@ get_source_name(IPAddr *ip_addr, char *buf, int size)
UTI_IPHostToNetwork(ip_addr, &request.data.ntp_source_name.ip_addr);
if (!request_reply(&request, &reply, RPY_NTP_SOURCE_NAME, 0) ||
reply.data.ntp_source_name.name[sizeof (reply.data.ntp_source_name.name) - 1] != '\0' ||
snprintf(buf, size, "%s", reply.data.ntp_source_name.name) >= size)
snprintf(buf, size, "%s", (char *)reply.data.ntp_source_name.name) >= size)
return 0;
/* Make sure the name is printable */