1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

Fixed incorrect format specifier

As reported by clang, the format used was %hi which is expecting
a short-typed argument, but the parameters are actually defined
as ints in the structure, so use only %i.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-11 00:25:33 +02:00
committed by Carlos R. Mafra
parent 1e76a78604
commit ebac6e7c83

View File

@@ -4855,7 +4855,7 @@ static WMPropList *drawerSaveState(WScreen *scr, WDock *drawer)
WMReleasePropList(pstr);
/* Store its position */
snprintf(buffer, sizeof(buffer), "%hi,%hi", ai->x_pos, ai->y_pos);
snprintf(buffer, sizeof(buffer), "%i,%i", ai->x_pos, ai->y_pos);
pstr = WMCreatePLString(buffer);
WMPutInPLDictionary(drawer_state, dPosition, pstr);
WMReleasePropList(pstr);