summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
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 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;
}
}
OpenPOWER on IntegriCloud