Merge pull request from GHSA-8c2f-mw8m-qpx6
Login window - replace g_sprintf() withl g_snprintf() calls
This commit is contained in:
commit
7c71a4f560
@ -722,13 +722,13 @@ xrdp_login_wnd_create(struct xrdp_wm *self)
|
||||
if (globals->ls_title[0] == 0)
|
||||
{
|
||||
g_gethostname(buf1, 256);
|
||||
g_sprintf(buf, "Login to %s", buf1);
|
||||
g_snprintf(buf, sizeof(buf), "Login to %s", buf1);
|
||||
set_string(&self->login_window->caption1, buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
/*self->login_window->caption1 = globals->ls_title[0];*/
|
||||
g_sprintf(buf, "%s", globals->ls_title);
|
||||
g_snprintf(buf, sizeof(buf), "%s", globals->ls_title);
|
||||
set_string(&self->login_window->caption1, buf);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user