Explorar o código

Fix typo in `string_to_string16` #444

gingerBill %!s(int64=6) %!d(string=hai) anos
pai
achega
9f0a28017d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/string.cpp

+ 1 - 1
src/string.cpp

@@ -404,7 +404,7 @@ String16 string_to_string16(gbAllocator a, String s) {
 	}
 	text[len] = 0;
 
-	return make_string16(text, len-1);
+	return make_string16(text, len);
 }