From: Christophe CURIS <[email protected]>

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 <[email protected]>
---
 src/dock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dock.c b/src/dock.c
index b29fe62..4d0de42 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -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);
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to