Fixed a buffer overflow that caused screen 1 to open screen 0's SM
snapshots file. SVN revision: 2935
This commit is contained in:
parent
8e3c02f37f
commit
c34fa01a19
811
po/en_US.po
811
po/en_US.po
File diff suppressed because it is too large
Load Diff
812
po/pt_BR.po
812
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
|
@ -234,7 +234,6 @@ SetupX()
|
|||
root.scr = DefaultScreen(disp);
|
||||
display_screens = ScreenCount(disp);
|
||||
master_screen = root.scr;
|
||||
|
||||
/* Start up on multiple heads, if appropriate */
|
||||
if ((display_screens > 1) && (!single_screen_mode))
|
||||
{
|
||||
|
@ -273,7 +272,7 @@ SetupX()
|
|||
if (NULL != dispstr)
|
||||
*dispstr = '\0';
|
||||
}
|
||||
Esnprintf(subdisplay + strlen(subdisplay), 255, ".%d",
|
||||
Esnprintf(subdisplay + strlen(subdisplay), 10, ".%d",
|
||||
i);
|
||||
dstr = duplicate(subdisplay);
|
||||
disp = XOpenDisplay(dstr);
|
||||
|
|
Loading…
Reference in New Issue