Merge pull request #74 from nwellnhof/pdb_clash

Avoid name clash between Windows .pdb files
diff --git a/src/blocks.c b/src/blocks.c
index 4432f78..38450e0 100755
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -477,10 +477,6 @@
     bool process = false;
     for (eol = buffer; eol < end; ++eol) {
       if (S_is_line_end_char(*eol)) {
-        if (eol < end && *eol == '\r')
-          eol++;
-        if (eol < end && *eol == '\n')
-          eol++;
         process = true;
         break;
       }
@@ -514,6 +510,11 @@
     }
 
     buffer += chunk_len;
+    // skip over line ending characters:
+    if (buffer < end && *buffer == '\r')
+      buffer++;
+    if (buffer < end && *buffer == '\n')
+      buffer++;
   }
 }