X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fxshm.c;h=f3f32e05844bbd6d3661dbd9975115eb01fd92b9;hp=5e23456f7900b6c6a03e4c086c8db8d6631c2e02;hb=c28aecf9fc41e3a03494bacf7279745425e2fa18;hpb=723c9eeee862766a1534b2ce17b78adbfac1c3be diff --git a/utils/xshm.c b/utils/xshm.c index 5e23456f..f3f32e05 100644 --- a/utils/xshm.c +++ b/utils/xshm.c @@ -215,7 +215,8 @@ destroy_xshm_image (Display *dpy, XImage *image, XShmSegmentInfo *shm_info) if (status != 0) { char buf[1024]; - sprintf (buf, "%s: shmdt(0x%x) failed", progname, shm_info->shmaddr); + sprintf (buf, "%s: shmdt(0x%lx) failed", progname, + (unsigned long) shm_info->shmaddr); perror(buf); } #ifdef DEBUG