(quotearg_buffer): Use `7' as the mask, not `3'.
authorJim Meyering <jim@meyering.net>
Fri, 11 Dec 1998 14:14:16 +0000 (14:14 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 11 Dec 1998 14:14:16 +0000 (14:14 +0000)
From Bruno Haible.

lib/quotearg.c

index b5fa735..4f21abb 100644 (file)
@@ -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;