summaryrefslogtreecommitdiff
path: root/sysutils/rox/patches/patch-ab
blob: 48af9ef6740641db7fb52c4723c351f0f68d6642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ab,v 1.5 2012/01/08 03:39:25 sbd Exp $

--- ROX-Filer/src/infobox.c.orig	2009-07-18 14:23:18.000000000 +0000
+++ ROX-Filer/src/infobox.c
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <sys/param.h>
 #include <signal.h>
+#include <stdint.h>
 #include <libxml/parser.h>
 
 #include <gtk/gtk.h>
@@ -435,7 +436,7 @@ static void insert_size(DU *du, const ch
 	cell = (size >= PRETTY_SIZE_LIMIT)
 		? g_strdup_printf("%s (%" SIZE_FMT " %s)",
 				format_size(size),
-				size, _("bytes"))
+				(intmax_t) size, _("bytes"))
 		: g_strdup(format_size(size));
 
 	set_cell(du->store, du->path, cell);
@@ -576,7 +577,7 @@ static GtkWidget *make_details(const guc
 				 item->size >= PRETTY_SIZE_LIMIT
 				 ? g_strdup_printf("%s (%" SIZE_FMT " %s)",
 						   format_size(item->size),
-						   item->size, _("bytes"))
+						   (intmax_t) item->size, _("bytes"))
 				 : g_strdup(format_size(item->size)));
 	}
 	else