diff options
author | des <des@FreeBSD.org> | 1998-10-13 12:19:31 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-10-13 12:19:31 +0000 |
commit | 528a0157d45bb4f11b9858153bbea5ecb7dafd3a (patch) | |
tree | 4905f07da636ca2d301ccfd45fe824a2b9687b44 /bin | |
parent | 72bb4a07e1421d05276a5a6bd671ca7a008d8fda (diff) | |
download | FreeBSD-src-528a0157d45bb4f11b9858153bbea5ecb7dafd3a.zip FreeBSD-src-528a0157d45bb4f11b9858153bbea5ecb7dafd3a.tar.gz |
Doh. What was I smoking when I wrote this?
PR: bin/8301
Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c index 3cd5659..d4b55e7 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; } } |