Przeglądaj źródła

Revert bad fix in Utf8Codex.cpp

Michael Ferris 7 lat temu
rodzic
commit
f5492fe4fa
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/Common/Codex/Utf8Codex.cpp

+ 1 - 1
lib/Common/Codex/Utf8Codex.cpp

@@ -513,7 +513,7 @@ LSlowPath:
         size_t destWriteMaxBytes = cbDest - 1; // leave room for null terminator
         size_t result = EncodeIntoImpl<encoding>(dest, destWriteMaxBytes, source, cchSource);
         dest[result] = 0;
-        return result + 1;
+        return result;
     }
 
     template