summaryrefslogtreecommitdiff
path: root/sysutils/rox/patches/patch-ad
blob: e40fc84c209d44f7eac9e103f07f948b8aade0dc (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-ad,v 1.4 2014/06/26 20:36:53 asau Exp $

--- ROX-Filer/src/support.c.orig	2009-07-18 14:23:18.000000000 +0000
+++ ROX-Filer/src/support.c
@@ -21,6 +21,7 @@
 
 #include "config.h"
 
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -272,7 +273,7 @@ const char *format_size(off_t size)
 		units = _("B");
 
 	g_free(buffer);
-	buffer = g_strdup_printf("%" SIZE_FMT " %s", size, units);
+	buffer = g_strdup_printf("%" SIZE_FMT " %s", (intmax_t) size, units);
 
 	return buffer;
 }
@@ -309,7 +310,7 @@ const char *format_size_aligned(off_t si
 		units = ' ';
 
 	g_free(buffer);
-	buffer = g_strdup_printf("%4" SIZE_FMT "%c", size, units);
+	buffer = g_strdup_printf("%4" SIZE_FMT "%c", (intmax_t) size, units);
 	
 	return buffer;
 }