Index: driver/as.cc
===================================================================
--- driver/as.cc	(revision 88792f32d48d31ba543a7f4a4db9b9b2c64b5677)
+++ driver/as.cc	(revision 58e0d3c0f0f89d41818bd98b8ed39e063a3c2a3d)
@@ -11,6 +11,6 @@
 // Created On       : Wed Aug  1 10:49:42 2018
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Tue Dec  7 21:15:25 2021
-// Update Count     : 132
+// Last Modified On : Wed Dec  8 07:34:12 2021
+// Update Count     : 135
 //
 
@@ -50,13 +50,13 @@
 					cursor = strstr( cursor, "\n" ) + 1;
 				} // for
-				cursor -= 1;							// backup over '\n'
+				cursor -= 2;							// backup over "d\n", where d is a hex digit
 				// From elfcpp/dwarf.h in the binutils source tree.
 				// DW_LANG_C89 = 0x1, DW_LANG_C = 0x2, DW_LANG_C99 = 0xc, DW_LANG_C11 = 0x1d
-				if ( *(cursor - 3) == '0' && *(cursor - 2) == 'x' &&
-					 (*(cursor - 1) == 'c' || *(cursor - 1) == '1' || *(cursor - 1) == '2') ) { // C89/C/C99
+				if ( *(cursor - 2) == '0' && *(cursor - 1) == 'x' &&
+					 (*cursor == 'c' || *cursor == '1' || *cursor == '2') ) { // C99/C89/C
 					// Expand file by one byte to hold 2 character Cforall language code.
 					if ( ftruncate( fd, size + 1 ) ) { perror( "ftruncate" ); exit( EXIT_FAILURE ); };
-					memmove( cursor + 1, cursor, start + size - cursor ); // move remaining text 1 character right
-				} else if ( *(cursor - 4) == '0' && *(cursor - 3) == 'x' && *(cursor - 2) == '1' && *(cursor - 1) == 'd' ) { // C11
+					memmove( cursor + 2, cursor + 1, start + size - cursor - 1 ); // move remaining text 1 character right
+				} else if ( *(cursor - 3) == '0' && *(cursor - 2) == 'x' && *(cursor - 1) == '1' && *cursor == 'd' ) { // C11
 				} else {
 					for ( int i = 0; i < 6; i += 1 ) {	// move N (magic) lines forward
@@ -69,6 +69,6 @@
 				} // if
 
-				*(cursor - 2) = '2';					// replace C89/C/C99/C11 language code with CFA code
-				*(cursor - 1) = '5';
+				*(cursor - 1) = '2';					// replace C89/C/C99/C11 language code with CFA code
+				*cursor = '5';
 			} // if
 		} // if
