openbsd-ports/graphics/xzgv/patches/patch-src_backend_c
alek 57b5969b4f Import xzgv 0.8
xzgv is a picture viewer for X, with a thumbnail-based file selector.
It uses GTK+ and Imlib. Most file formats are supported, and the
thumbnails used are compatible with xv, zgv, and the Gimp. It can also
be used with `xzgv file(s)', to effectively bypass the file selector.

From Julian Leyh <oenone@oenone.de>
2005-05-22 11:32:11 +00:00

13 lines
481 B
Plaintext

$OpenBSD: patch-src_backend_c,v 1.1.1.1 2005/05/22 11:32:11 alek Exp $
--- src/backend.c.orig Thu May 12 15:42:51 2005
+++ src/backend.c Thu May 12 15:43:10 2005
@@ -239,7 +239,7 @@ im->rgb_data = rgb;
im->alpha_data = NULL;
/* Imlib does this next bit for anonymous data... *wretch* */
-g_snprintf(s, sizeof(s), "creat_%lx_%x", time(NULL), rand());
+g_snprintf(s, sizeof(s), "creat_%lx_%x", (long unsigned int)time(NULL), rand());
im->filename = strdup(s);
im->width = 0;