From ebac6e7c839dfededc4814379495cc65c0e359c2 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Tue, 11 Jun 2013 00:25:33 +0200 Subject: [PATCH] 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 --- src/dock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dock.c b/src/dock.c index b29fe62e..4d0de422 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); -- 2.11.4.GIT