summaryrefslogtreecommitdiff
path: root/sysutils/rox/patches/patch-ac
blob: a644758a48a2891938d50250ea6e82f11fe52578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ac,v 1.6 2009/12/10 16:28:44 joerg Exp $

--- ROX-Filer/src/pixmaps.c.orig	2009-07-18 16:23:18.000000000 +0200
+++ ROX-Filer/src/pixmaps.c
@@ -34,6 +34,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <inttypes.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <string.h>
@@ -432,7 +433,7 @@ static void save_thumbnail(const char *p
 
 	swidth = g_strdup_printf("%d", original_width);
 	sheight = g_strdup_printf("%d", original_height);
-	ssize = g_strdup_printf("%" SIZE_FMT, info.st_size);
+	ssize = g_strdup_printf("%" SIZE_FMT, (intmax_t) info.st_size);
 	smtime = g_strdup_printf("%ld", (long) info.st_mtime);
 
 	path = pathdup(pathname);