You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized.
This commit is contained in:
@@ -769,7 +769,7 @@ bool FileAccess::store_pascal_string(const String &p_string) {
|
||||
String FileAccess::get_pascal_string() {
|
||||
uint32_t sl = get_32();
|
||||
CharString cs;
|
||||
cs.resize(sl + 1);
|
||||
cs.resize_uninitialized(sl + 1);
|
||||
get_buffer((uint8_t *)cs.ptr(), sl);
|
||||
cs[sl] = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user