mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
more bsd tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32485 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dbaa646d12
commit
dbf4119553
19 changed files with 91 additions and 68 deletions
|
@ -458,7 +458,7 @@ static void clean_up_names(void)
|
|||
|
||||
write(fd, (char*)socket_name, strlen((char*)socket_name));
|
||||
write(fd, "\n", 1);
|
||||
sprintf((char*)buf, "%i\n", getpid());
|
||||
snprintf((char*)buf, sizeof(buf), "%i\n", getpid());
|
||||
write(fd, (char*)buf, strlen((char*)buf));
|
||||
|
||||
close(fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue