Index: libcfa/src/parseconfig.cfa
===================================================================
--- libcfa/src/parseconfig.cfa	(revision 45729a8605b2a73f889a6bfa62c6f95eeac53e66)
+++ libcfa/src/parseconfig.cfa	(revision c80ac84230946cb4e86eae9f2fd9a88ed9d69dca)
@@ -120,9 +120,37 @@
 
 		while () {
-			char * key = 0p;
-			char * value = 0p;
-		  if ( comments( in, key ) ) break;			// eof ?
-		  	// Should we just overwrite duplicate config entries? Having a hash map would make this much easier
-			in | value;
+			// * char key;
+			// * char value;
+		  	// if ( comments( in, key ) ) break;			// eof ?
+
+			// THE CODE BELOW IS TEMPORARY, TO TRY AND GET SOMETHING WORKING
+
+		  	// Right now doesn't handle duplicate keys. Should use hashmap for that
+			char c;
+			StringBuilder key_sb;
+			StringBuilder value_sb;
+
+			// Doesn't handle comments
+			while () {
+				in | c;
+				if ( c == ' ' ) {
+					while ( c == ' ' ) in | c;
+				} else {
+			  		add_char( key_sb, c );
+				}
+			}
+
+			* char key = alloc( key_sb.size );
+			strcpy( key, key_sb.string );
+
+			// Doesn't handle comments
+			while () {
+				in | c;
+			  if ( c == ' ' || c == '\n' ) break;
+				add_char( value_sb, c );
+			}
+
+			* char value = alloc( value_sb.size );
+			strcpy( value, value_sb.string );
 
 			add_kv_pair( kv_pairs, key, value );
