From 6bd6aa7b50861580cc12777e891d10ec27dc6d93 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 16 Aug 2004 04:56:19 +0000 Subject: [PATCH] Made output of the st_mode system independent. --- src/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index 2a481f8dc..26db8548a 100644 --- a/src/screen.c +++ b/src/screen.c @@ -308,7 +308,7 @@ string_file_perm_octal (file_entry *fe, int len) { static char buffer [10]; - g_snprintf (buffer, sizeof (buffer), "0%06o", fe->st.st_mode); + g_snprintf (buffer, sizeof (buffer), "0%06lo", (unsigned long) fe->st.st_mode); return buffer; }