From: Jim Meyering Date: Fri, 11 Dec 1998 14:14:16 +0000 (+0000) Subject: (quotearg_buffer): Use `7' as the mask, not `3'. X-Git-Tag: FILEUTILS-4_1-b1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd65b86607ab8359e5d33ea024144fdcf1028fb2;p=thirdparty%2Fcoreutils.git (quotearg_buffer): Use `7' as the mask, not `3'. From Bruno Haible. --- diff --git a/lib/quotearg.c b/lib/quotearg.c index b5fa7355df..4f21abb1c5 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;