mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58: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:
committed by
Carlos R. Mafra
parent
1e76a78604
commit
ebac6e7c83
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user