diff options
Diffstat (limited to 'selections.c')
-rw-r--r-- | selections.c | 2 |
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; |