Fix warning caused by user sourced format string (not a real error)

This commit is contained in:
Daniel O'Connor 2012-07-29 13:03:11 +09:30
parent 72f8b1916d
commit 8cc08699ca

View File

@ -35,7 +35,7 @@ int monitor_client_open()
/* XXX - On non-linux systems, we need to use a regular named socket */
addr.sun_path[0]=0;
snprintf(&addr.sun_path[1],100,
confValueGet("monitor.socket",DEFAULT_MONITOR_SOCKET_NAME));
"%s", confValueGet("monitor.socket",DEFAULT_MONITOR_SOCKET_NAME));
int len = 1+strlen(&addr.sun_path[1]) + sizeof(addr.sun_family);
char *p=(char *)&addr;
printf("last char='%c' %02x\n",p[len-1],p[len-1]);