mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
Fix snprintf arguments
This commit is contained in:
parent
5cbc2167ec
commit
890feaadc9
@ -74,7 +74,7 @@ int monitor_socket_name(struct sockaddr_un *name){
|
||||
hanging around. */
|
||||
name->sun_path[0] = '\0';
|
||||
/* XXX: 104 comes from OSX sys/un.h - no #define (note Linux has UNIX_PATH_MAX and it's 108(!)) */
|
||||
snprintf(&name->sun_path[1],104-2,
|
||||
snprintf(&name->sun_path[1],104-2,"%s",
|
||||
confValueGet("monitor.socket",DEFAULT_MONITOR_SOCKET_NAME));
|
||||
/* Doesn't include trailing nul */
|
||||
len = 1+strlen(&name->sun_path[1]) + sizeof(name->sun_family);
|
||||
|
Loading…
Reference in New Issue
Block a user