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:
3b85e48
)
dtcm: Coverity 89265
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:26:39 +0000
(
01:26
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:26:39 +0000
(
01:26
+0100)
cde/programs/dtcm/server/svcmain.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/server/svcmain.c
b/cde/programs/dtcm/server/svcmain.c
index c917922c7a3e5fe8089ce743a5cd2175fe4e3dc8..8b9b27fa7ba8727c8a8a7c68ebeef6ca34a75d14 100644
(file)
--- a/
cde/programs/dtcm/server/svcmain.c
+++ b/
cde/programs/dtcm/server/svcmain.c
@@
-327,14
+327,11
@@
lock_it(void)
locker.l_len = 0;
#endif /* SVR4 */
- strcpy (buff, dir);
- strcat (buff, "/.lock.");
-
/*
* /var/spool might be mounted. Use .lock.hostname to
* prevent more than one cms running in each host.
*/
- s
trcat(buff
, _DtCmGetLocalHost());
+ s
nprintf(buff, sizeof(buff), "%s/.lock.%s", dir
, _DtCmGetLocalHost());
fd = open(buff, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
if (fd < 0)