summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lr.c b/lr.c
index fa0c535..dc31d6c 100644
--- a/lr.c
+++ b/lr.c
@@ -242,9 +242,9 @@ op:
 			parse_error("invalid mode operator");
 
 		switch(*c) {
-		case 'u': what = 00111 * ((newmode >> 6) & 0007); break;
-		case 'g': what = 00111 * ((newmode >> 3) & 0007); break;
-		case 'o': what = 00111 * ((newmode     ) & 0007); break;
+		case 'u': what = 00111 * ((newmode >> 6) & 0007); c++; break;
+		case 'g': what = 00111 * ((newmode >> 3) & 0007); c++; break;
+		case 'o': what = 00111 * ((newmode     ) & 0007); c++; break;
 		default:
 			while (1) {
 				switch(*c) {