strc{py,at}_truncate -> strlc{py,at}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6983 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -65,11 +65,11 @@ gethostname(char *name, int namelen)
|
||||
ret = uname (&utsname);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
strcpy_truncate (name, utsname.nodename, namelen);
|
||||
strlcpy (name, utsname.nodename, namelen);
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
strcpy_truncate (name, "some.random.host", namelen);
|
||||
strlcpy (name, "some.random.host", namelen);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user