mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-05 20:38:04 +00:00
Change strcpy to sprintf to fix compile error.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1908 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
6a327f134b
commit
ada9153949
@ -304,7 +304,7 @@ coroipcc_service_connect (
|
||||
#if defined(COROSYNC_LINUX)
|
||||
sprintf (address.sun_path + 1, "%s", socket_name);
|
||||
#else
|
||||
strcpy (address.sun_path, "%s%s", SOCKETDIR, socket_name);
|
||||
sprintf (address.sun_path, "%s%s", SOCKETDIR, socket_name);
|
||||
#endif
|
||||
res = connect (request_fd, (struct sockaddr *)&address,
|
||||
AIS_SUN_LEN(&address));
|
||||
|
Loading…
Reference in New Issue
Block a user