mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
AGI: use shorter sizes for buffers
Instead of allocate them with MAXPATHLEN as size, just give them the size for the data that are going to be written on them.
This commit is contained in:
parent
e8fd25e22f
commit
f29b3658b0
@ -135,7 +135,7 @@ int AgiLoader_v2::unloadResource(int t, int n) {
|
||||
*/
|
||||
uint8 *AgiLoader_v2::loadVolRes(struct AgiDir *agid) {
|
||||
uint8 *data = NULL;
|
||||
char x[MAXPATHLEN];
|
||||
char x[6];
|
||||
Common::File fp;
|
||||
unsigned int sig;
|
||||
Common::String path;
|
||||
|
@ -198,7 +198,7 @@ int AgiLoader_v3::unloadResource(int t, int n) {
|
||||
* NULL is returned if unsucsessful.
|
||||
*/
|
||||
uint8 *AgiLoader_v3::loadVolRes(AgiDir *agid) {
|
||||
char x[MAXPATHLEN];
|
||||
char x[8];
|
||||
uint8 *data = NULL, *compBuffer;
|
||||
Common::File fp;
|
||||
Common::String path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user