mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-25 00:34:32 +01:00
fixup! lsteamclient: Allocate memory for every path conversion.
CW-Bug-Id: #22896
This commit is contained in:
parent
855fac8d63
commit
6ebd1d11de
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ const char *steamclient_dos_to_unix_path( const char *src, int is_url )
|
|||
done:
|
||||
len = strlen( buffer );
|
||||
if (!(dst = HeapAlloc( GetProcessHeap(), 0, len + 1 ))) return NULL;
|
||||
memcpy( dst, buffer, len );
|
||||
memcpy( dst, buffer, len + 1 );
|
||||
return dst;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue