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:
9383267
)
libDtHelp: Coverity 88665
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:36:03 +0000
(
01:36
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:36:03 +0000
(
01:36
+0100)
cde/lib/DtHelp/Environ_c.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtHelp/Environ_c.c
b/cde/lib/DtHelp/Environ_c.c
index 00792d98df3dfeb0b97adb346f78ddaa56699c4c..516278db7306759a6a907f80ca54f7ea458bfd9b 100644
(file)
--- a/
cde/lib/DtHelp/Environ_c.c
+++ b/
cde/lib/DtHelp/Environ_c.c
@@
-107,7
+107,7
@@
char * _DtCliSrvGetDtUserSession(void)
{
char * s = strchr(display,':');
if (s && strlen(s) < (size_t)BUFSIZ) {
- s
trcpy(screen,s+
1);
+ s
nprintf(screen, sizeof(screen), "%s", s +
1);
*s = 0;
if ((s = strchr(screen,'.')) && *(s+1) == '0')
*s = 0;