1
0
blueloveTH 2 жил өмнө
parent
commit
3d7024b508
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;
+        SStream ss(source.size());
         while(index < source.size()){
             if(source[index] != '\r') ss << source[index];
             index++;