aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>1998-10-13 12:19:31 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>1998-10-13 12:19:31 +0000
commit0ffc35a46540c54dc1537a602e1e4af78282abad (patch)
treece221f45e22ed2068a949725d03956b0de95410c /bin
parent88f416c601d42d49fb4f13abee6ec2faae2e4c00 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/ls/util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c
index 3cd5659d3043..d4b55e797660 100644
--- a/bin/ls/util.c
+++ b/bin/ls/util.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94";
#else
static const char rcsid[] =
- "$Id: util.c,v 1.16 1998/04/25 00:10:24 ache Exp $";
+ "$Id: util.c,v 1.17 1998/04/25 00:12:32 ache Exp $";
#endif
#endif /* not lint */
@@ -137,8 +137,8 @@ prn_octal(s)
break;
default:
putchar('0' + (ch >> 6));
- putchar('0' + ((ch >> 3) & 3));
- putchar('0' + (ch & 3));
+ putchar('0' + ((ch >> 3) & 7));
+ putchar('0' + (ch & 7));
len += 2;
break;
}
@@ -147,8 +147,8 @@ prn_octal(s)
else {
putchar('\\');
putchar('0' + (ch >> 6));
- putchar('0' + ((ch >> 3) & 3));
- putchar('0' + (ch & 3));
+ putchar('0' + ((ch >> 3) & 7));
+ putchar('0' + (ch & 7));
len += 4;
}
}