mirror of
https://github.com/ValveSoftware/Proton.git
synced 2026-01-08 21:58:09 -05:00
steam_helper: Don't write garbage memory to libraryfolders.vdf.
buf_len is the size of allocated buffer, pos should be used instead when determining how much to write.
This commit is contained in:
@@ -680,7 +680,7 @@ static void setup_steam_files(void)
|
||||
}
|
||||
|
||||
pos += strappend( &buf, &buf_size, pos, "}\n" );
|
||||
write_file( L"C:\\Program Files (x86)\\Steam\\steamapps\\libraryfolders.vdf", buf, buf_size );
|
||||
write_file( L"C:\\Program Files (x86)\\Steam\\steamapps\\libraryfolders.vdf", buf, pos );
|
||||
}
|
||||
|
||||
#ifndef DIRECTORY_QUERY
|
||||
|
||||
Reference in New Issue
Block a user