dtlogin: coverity fixes

This commit is contained in:
Peter Howkins
2018-04-13 00:54:04 +01:00
parent 4e9dc6c50b
commit 13d3e1db50
14 changed files with 52 additions and 60 deletions

View File

@@ -960,9 +960,7 @@ char *temp_p;
char *host;
host = GetDisplayName();
strcpy(temp, host);
strcat(temp, " - ");
strcat(temp, rmvalue.addr + strlen(DISPLAYNAME));
snprintf(temp, sizeof(temp), "%s - %s", host, rmvalue.addr + strlen(DISPLAYNAME));
xmstr = XmStringCreateLocalized(temp);
}
else {