mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-25 07:43:40 +03:00
fixup! lsteamclient: Allocate memory for every path conversion.
CW-Bug-Id: #22896
This commit is contained in:
parent
855fac8d63
commit
6ebd1d11de
@ -275,7 +275,7 @@ const char *steamclient_dos_to_unix_path( const char *src, int is_url )
|
|||||||
done:
|
done:
|
||||||
len = strlen( buffer );
|
len = strlen( buffer );
|
||||||
if (!(dst = HeapAlloc( GetProcessHeap(), 0, len + 1 ))) return NULL;
|
if (!(dst = HeapAlloc( GetProcessHeap(), 0, len + 1 ))) return NULL;
|
||||||
memcpy( dst, buffer, len );
|
memcpy( dst, buffer, len + 1 );
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user