Commit 78d146e8 authored by Wayne Davison's avatar Wayne Davison

Use PERMSTRING_SIZE rather than a hard-wired "11".

parent 77860bac
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment