mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-25 00:34:32 +01:00
fixup! vrclient: Allocate memory for every path conversion.
This commit is contained in:
parent
fd62ba3df4
commit
608505ee78
1 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ char *vrclient_dos_to_unix_path( const char *src )
|
|||
if (!src) return NULL;
|
||||
|
||||
*dst = 0;
|
||||
if (*src) goto done;
|
||||
if (!*src) goto done;
|
||||
|
||||
if(IS_ABSOLUTE(src)){
|
||||
/* absolute path, use wine conversion */
|
||||
|
|
@ -146,7 +146,7 @@ char *vrclient_dos_to_unix_path( const char *src )
|
|||
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