aboutsummaryrefslogtreecommitdiffstats
path: root/selections.c
diff options
context:
space:
mode:
authorStéphane Aulery <saulery@free.fr>2014-11-08 18:00:26 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-11-17 14:31:49 +0100
commit6e81ca91fa8e62ca6fb5ba41c45bbd6a605d514c (patch)
tree23098f39c8e233100e892fd2615c2b4ee2c815b3 /selections.c
parentb1ad6e37beddb396f7cbd1fd1dca48036d85c016 (diff)
downloadfbida-6e81ca91fa8e62ca6fb5ba41c45bbd6a605d514c.tar.gz
Fix cppcheck warning %d in format string requires 'int' but the argument type is 'unsigned int'
Signed-off-by: Stéphane Aulery <saulery@free.fr> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'selections.c')
-rw-r--r--selections.c2
1 files changed, 1 insertions, 1 deletions
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;