1
0
Fork 0
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:
Peter Howkins 2018-07-04 02:18:20 +01:00
parent 0b7653abff
commit 160728d895

View file

@ -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;