mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-10 13:49:37 +03: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:
parent
ecebf8c6e6
commit
7d79990d4b
@ -680,7 +680,7 @@ static void setup_steam_files(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pos += strappend( &buf, &buf_size, pos, "}\n" );
|
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
|
#ifndef DIRECTORY_QUERY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user