mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtdocbook: Coverity 86683
This commit is contained in:
parent
0b7653abff
commit
160728d895
1 changed files with 2 additions and 2 deletions
|
@ -77,9 +77,9 @@ Tcl_GetHostName(void)
|
|||
if (uname(&u) > -1) {
|
||||
hp = gethostbyname(u.nodename);
|
||||
if (hp != NULL) {
|
||||
strcpy(hostname, hp->h_name);
|
||||
snprintf(hostname, sizeof(hostname), "%s", hp->h_name);
|
||||
} else {
|
||||
strcpy(hostname, u.nodename);
|
||||
snprintf(hostname, sizeof(hostname), "%s", u.nodename);
|
||||
}
|
||||
hostnameInited = 1;
|
||||
return hostname;
|
||||
|
|
Loading…
Reference in a new issue