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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4d3686275a1178445fe8975f9e0ed5e9f3a6587;p=pspp (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;