blueloveTH пре 2 година
родитељ
комит
151deed5bc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/error.cpp

+ 1 - 1
src/error.cpp

@@ -7,7 +7,7 @@ namespace pkpy{
         // Skip utf8 BOM if there is any.
         if (strncmp(source.data(), "\xEF\xBB\xBF", 3) == 0) index += 3;
         // Drop all '\r'
-        SStream ss(source.size());
+        SStream ss(source.size() + 1);
         while(index < source.size()){
             if(source[index] != '\r') ss << source[index];
             index++;