mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
replace sprintf by snprintf (silence warning by macOS compiler)
This commit is contained in:
@@ -136,7 +136,7 @@ raop_rtp_parse_remote(raop_rtp_t *raop_rtp, const unsigned char *remote, int rem
|
||||
return -1;
|
||||
}
|
||||
memset(current, 0, sizeof(current));
|
||||
sprintf(current, "%d.%d.%d.%d", remote[0], remote[1], remote[2], remote[3]);
|
||||
snprintf(current, sizeof(current), "%d.%d.%d.%d", remote[0], remote[1], remote[2], remote[3]);
|
||||
logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp parse remote ip = %s", current);
|
||||
ret = netutils_parse_address(family, current,
|
||||
&raop_rtp->remote_saddr,
|
||||
|
||||
Reference in New Issue
Block a user