From 6e81ca91fa8e62ca6fb5ba41c45bbd6a605d514c Mon Sep 17 00:00:00 2001 From: Stéphane Aulery Date: Sat, 8 Nov 2014 18:00:26 +0100 Subject: Fix cppcheck warning %d in format string requires 'int' but the argument type is 'unsigned int' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Aulery Signed-off-by: Gerd Hoffmann --- selections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selections.c') diff --git a/selections.c b/selections.c index 10a2617..26edf20 100644 --- a/selections.c +++ b/selections.c @@ -307,7 +307,7 @@ selection_convert(Widget widget, XtPointer ignore, XtPointer call_data) } else if (ccs->target == MIME_IMAGE_PPM) { /* xfer image data directly */ cdata = XtMalloc(sel->img.i.width * sel->img.i.height * 3 + 32); - n = sprintf(cdata,"P6\n%d %d\n255\n", + n = sprintf(cdata,"P6\n%u %u\n255\n", sel->img.i.width, sel->img.i.height); memcpy(cdata+n, sel->img.data, sel->img.i.width*sel->img.i.height*3); ccs->value = cdata; -- cgit