mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
Don't pass the configuration value as the format string.
This commit is contained in:
parent
41a7588a7f
commit
59ff806081
@ -77,7 +77,7 @@ int app_monitor_cli(int argc, const char *const *argv, struct command_line_optio
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
addr.sun_family = AF_UNIX;
|
||||
addr.sun_path[0]=0;
|
||||
snprintf(&addr.sun_path[1],100,
|
||||
snprintf(&addr.sun_path[1],100,"%s",
|
||||
confValueGet("monitor.socket",DEFAULT_MONITOR_SOCKET_NAME));
|
||||
int len = 1+strlen(&addr.sun_path[1]) + sizeof(addr.sun_family);
|
||||
char *p=(char *)&addr;
|
||||
|
Loading…
Reference in New Issue
Block a user