mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +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,':');
|
char * s = strchr(display,':');
|
||||||
if (s && strlen(s) < (size_t)BUFSIZ) {
|
if (s && strlen(s) < (size_t)BUFSIZ) {
|
||||||
strcpy(screen,s+1);
|
snprintf(screen, sizeof(screen), "%s", s + 1);
|
||||||
*s = 0;
|
*s = 0;
|
||||||
if ((s = strchr(screen,'.')) && *(s+1) == '0')
|
if ((s = strchr(screen,'.')) && *(s+1) == '0')
|
||||||
*s = 0;
|
*s = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue