mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
avoid compiler/linker warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32483 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ab4587dbcf
commit
dbaa646d12
23 changed files with 271 additions and 167 deletions
|
@ -280,7 +280,8 @@ myHostName()
|
|||
}
|
||||
else if (name == nil || strcmp(old, buf) != 0)
|
||||
{
|
||||
strcpy(old, buf);
|
||||
strncpy(old, buf, sizeof(old) - 1);
|
||||
old[sizeof(old) - 1] = '\0';
|
||||
RELEASE(name);
|
||||
name = [[NSString alloc] initWithCString: buf];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue