summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ls.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index 8126b8c60..6f8bc3380 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2982,7 +2982,8 @@ format_user (uid_t u, int width)
printf ("%-*s ", width, name);
else
printf ("%*lu ", width, (unsigned long int) u);
- dired_pos += width + 1;
+ dired_pos += width;
+ dired_pos++;
}
/* Likewise, for groups. */
@@ -2995,7 +2996,8 @@ format_group (gid_t g, int width)
printf ("%-*s ", width, name);
else
printf ("%*lu ", width, (unsigned long int) g);
- dired_pos += width + 1;
+ dired_pos += width;
+ dired_pos++;
}
/* Return the number of bytes that format_user will print. */