Use PERMSTRING_SIZE rather than a hard-wired "11".
authorWayne Davison <wayned@samba.org>
Sun, 29 Jan 2006 20:30:02 +0000 (20:30 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 29 Jan 2006 20:30:02 +0000 (20:30 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 6b1be78..3e757db 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -130,26 +130,26 @@ void show_flist_stats(void)
 
 static void list_file_entry(struct file_struct *f)
 {
-       char perms[11];
+       char permbuf[PERMSTRING_SIZE];
 
        if (!f->basename) {
                /* this can happen if duplicate names were removed */
                return;
        }
 
-       permstring(perms, f->mode);
+       permstring(permbuf, f->mode);
 
 #ifdef SUPPORT_LINKS
        if (preserve_links && S_ISLNK(f->mode)) {
                rprintf(FINFO, "%s %11.0f %s %s -> %s\n",
-                       perms,
+                       permbuf,
                        (double)f->length, timestring(f->modtime),
                        f_name(f, NULL), f->u.link);
        } else
 #endif
        {
                rprintf(FINFO, "%s %11.0f %s %s\n",
-                       perms,
+                       permbuf,
                        (double)f->length, timestring(f->modtime),
                        f_name(f, NULL));
        }