diff lib/quotearg.c @ 1565:56dbd84ae920

(quotearg_buffer): Use `7' as the mask, not `3'. From Bruno Haible.
author Jim Meyering <jim@meyering.net>
date Fri, 11 Dec 1998 14:14:16 +0000
parents c5862deb63ad
children 287550eb5c15
line wrap: on
line diff
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -258,8 +258,8 @@
 		{
 		  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;