projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7653a
)
dtdocbook: Coverity 86683
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 01:18:20 +0000
(
02:18
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 01:18:20 +0000
(
02:18
+0100)
cde/programs/dtdocbook/tcl/tclUnixSock.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtdocbook/tcl/tclUnixSock.c
b/cde/programs/dtdocbook/tcl/tclUnixSock.c
index 59cb4124ad1ce236214263d6c4ea61d19aeddcec..606f1ca8686961636ce21098f50a7c4f41cac9fd 100644
(file)
--- a/
cde/programs/dtdocbook/tcl/tclUnixSock.c
+++ b/
cde/programs/dtdocbook/tcl/tclUnixSock.c
@@
-77,9
+77,9
@@
Tcl_GetHostName(void)
if (uname(&u) > -1) {
hp = gethostbyname(u.nodename);
if (hp != NULL) {
- s
trcpy(hostname
, hp->h_name);
+ s
nprintf(hostname, sizeof(hostname), "%s"
, hp->h_name);
} else {
- s
trcpy(hostname
, u.nodename);
+ s
nprintf(hostname, sizeof(hostname), "%s"
, u.nodename);
}
hostnameInited = 1;
return hostname;