mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
libDtHelp: Coverity 88665
This commit is contained in:
parent
9383267ded
commit
a7e09ae1c3
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ char * _DtCliSrvGetDtUserSession(void)
|
|||
{
|
||||
char * s = strchr(display,':');
|
||||
if (s && strlen(s) < (size_t)BUFSIZ) {
|
||||
strcpy(screen,s+1);
|
||||
snprintf(screen, sizeof(screen), "%s", s + 1);
|
||||
*s = 0;
|
||||
if ((s = strchr(screen,'.')) && *(s+1) == '0')
|
||||
*s = 0;
|
||||
|
|
Loading…
Reference in a new issue