Made output of the st_mode system independent.

This commit is contained in:
Roland Illig 2004-08-16 04:56:19 +00:00
parent d1b57fbf7f
commit 6bd6aa7b50

View File

@ -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;
}