mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtwm/WmFP: Coverity (memory corruption, moderate)
This commit is contained in:
parent
f05c124807
commit
a71cde075e
1 changed files with 2 additions and 5 deletions
|
@ -746,8 +746,6 @@ WmPanelistShow (Widget w)
|
|||
Arg al[20];
|
||||
int ac;
|
||||
|
||||
|
||||
|
||||
/* Find the switch data for later processing */
|
||||
|
||||
switch_data = NULL;
|
||||
|
@ -785,16 +783,15 @@ WmPanelistShow (Widget w)
|
|||
if (shell_geometry == NULL)
|
||||
{
|
||||
Position x;
|
||||
char geometry_buffer[32];
|
||||
|
||||
if (panel.element_values[PANEL_GEOMETRY].string_value != NULL)
|
||||
{
|
||||
shell_geometry = panel.element_values[PANEL_GEOMETRY].parsed_value;
|
||||
shell_geometry = panel.element_values[PANEL_GEOMETRY].parsed_value;
|
||||
}
|
||||
else
|
||||
{
|
||||
x = (screen_width > width) ? (Position)(screen_width - width) / 2 : 0;
|
||||
sprintf (geometry_buffer, "+%d-0", x);
|
||||
snprintf (geometry_buffer, 32 - 1, "+%d-0", x);
|
||||
shell_geometry = geometry_buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue