Index: libcfa/src/iostream.cfa
===================================================================
--- libcfa/src/iostream.cfa	(revision c6b4432f5c6c6679b981f5a6bded51ad30ac00d9)
+++ libcfa/src/iostream.cfa	(revision 3e4bf0de992aa5718032f4d3d13ab65268c7805d)
@@ -10,6 +10,6 @@
 // Created On       : Wed May 27 17:56:53 2015
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Thu Oct 19 21:10:10 2023
-// Update Count     : 1801
+// Last Modified On : Sat Nov 11 07:06:27 2023
+// Update Count     : 1803
 //
 
@@ -1001,4 +1001,6 @@
 				} // if
 			} // if
+			// FIX ME: CFA strings need to be modified to NOT change the argument for this case, then this can be removed.
+			if ( rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
 		} else {
 			if ( f.flags.delimiter ) {					// getline
@@ -1041,4 +1043,5 @@
 				} // if
 			} // if
+			if ( rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
 		} // if
 		if ( args == 1 && eof( is ) ) {					// data but scan ended at EOF
Index: tests/io/.expect/manipulatorsInput.arm64.txt
===================================================================
--- tests/io/.expect/manipulatorsInput.arm64.txt	(revision c6b4432f5c6c6679b981f5a6bded51ad30ac00d9)
+++ tests/io/.expect/manipulatorsInput.arm64.txt	(revision 3e4bf0de992aa5718032f4d3d13ab65268c7805d)
@@ -24,15 +24,15 @@
 3 abcxxx
 4 aaaaaaaa
-5 aaaaaaaa
+5
 6 aabbccbb
 7 dddwww
-8 dddwww
-9 dddwww
+8
+9
 10 aaaaaaaa
 11 wwwwwwww
-12 wwwwwwww
-13 wwwwwwww
+12
+13
 14 cccc
-15 q
+15
 a
 a
Index: tests/io/.expect/manipulatorsInput.x64.txt
===================================================================
--- tests/io/.expect/manipulatorsInput.x64.txt	(revision c6b4432f5c6c6679b981f5a6bded51ad30ac00d9)
+++ tests/io/.expect/manipulatorsInput.x64.txt	(revision 3e4bf0de992aa5718032f4d3d13ab65268c7805d)
@@ -24,15 +24,15 @@
 3 abcxxx
 4 aaaaaaaa
-5 aaaaaaaa
+5
 6 aabbccbb
 7 dddwww
-8 dddwww
-9 dddwww
+8
+9
 10 aaaaaaaa
 11 wwwwwwww
-12 wwwwwwww
-13 wwwwwwww
+12
+13
 14 cccc
-15 q
+15
 a
 a
Index: tests/io/.expect/manipulatorsInput.x86.txt
===================================================================
--- tests/io/.expect/manipulatorsInput.x86.txt	(revision c6b4432f5c6c6679b981f5a6bded51ad30ac00d9)
+++ tests/io/.expect/manipulatorsInput.x86.txt	(revision 3e4bf0de992aa5718032f4d3d13ab65268c7805d)
@@ -24,15 +24,15 @@
 3 abcxxx
 4 aaaaaaaa
-5 aaaaaaaa
+5
 6 aabbccbb
 7 dddwww
-8 dddwww
-9 dddwww
+8
+9
 10 aaaaaaaa
 11 wwwwwwww
-12 wwwwwwww
-13 wwwwwwww
+12
+13
 14 cccc
-15 q
+15
 a
 a
