Index: main.cpp
===================================================================
RCS file: /home/kde/kdelibs/dcop/dcopidl/main.cpp,v
retrieving revision 1.10
diff -u -r1.10 main.cpp
--- main.cpp	10 Mar 2002 21:17:42 -0000	1.10
+++ main.cpp	11 Feb 2005 10:42:16 -0000
@@ -48,7 +48,16 @@
     }
 
     QByteArray arr = file.readAll();
-    int len = arr.size();
+    uint len = arr.size();
+    /* eat all \r characters so the parser won't be fooled */
+    for (uint i=0, j=0; i<len; i++) {
+        if (arr[ i ] != '\r') {
+            if (i!=j)
+                arr[ j ] = arr[ i ];
+            j++;
+        }
+    }
+    len = j;
     arr.resize( len + 1 );
     arr[ len ] = 0;
 
