Fix compile error

This commit is contained in:
Andrew Bettison 2012-08-09 13:45:57 +09:30
parent 6f9cf490dc
commit 39325e0262

@ -72,7 +72,7 @@ int monitor_socket_name(struct sockaddr_un *name){
/* Use abstract namespace as Android has no writable FS which supports sockets.
Abstract namespace is just plain better, anyway, as no dead files end up
hanging around. */
name.sun_path[0]=0;
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,
confValueGet("monitor.socket",DEFAULT_MONITOR_SOCKET_NAME));