summaryrefslogtreecommitdiff
path: root/lib/quotearg.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-12-11 14:14:16 +0000
committerJim Meyering <jim@meyering.net>1998-12-11 14:14:16 +0000
commitfd65b86607ab8359e5d33ea024144fdcf1028fb2 (patch)
tree3b0f60fbbce2867665f662d5c3c337d35a7640c5 /lib/quotearg.c
parentbc0c0e635cd958a0504a26823b81a5825c102b52 (diff)
downloadcoreutils-fd65b86607ab8359e5d33ea024144fdcf1028fb2.tar.xz
(quotearg_buffer): Use `7' as the mask, not `3'.
From Bruno Haible.
Diffstat (limited to 'lib/quotearg.c')
-rw-r--r--lib/quotearg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index b5fa7355d..4f21abb1c 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -258,8 +258,8 @@ quotearg_buffer (char *buffer, size_t buffersize,
{
STORE ('\\');
STORE ('0' + (c >> 6));
- STORE ('0' + ((c >> 3) & 3));
- c = '0' + (c & 3);
+ STORE ('0' + ((c >> 3) & 7));
+ c = '0' + (c & 7);
goto store_c;
}
break;