mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-24 19:54:25 -04:00
[cmp] update Bled to latest
* Also fix a possible buffer overflow in msapi_utf8.h
This commit is contained in:
parent
ff9eae4e6d
commit
67081fac6e
7 changed files with 21 additions and 20 deletions
|
@ -802,7 +802,7 @@ static __inline char* getenvU(const char* varname)
|
|||
wchar_t value[256];
|
||||
size_t value_size;
|
||||
// MinGW and WDK don't know wdupenv_s, so we use wgetenv_s
|
||||
_wgetenv_s(&value_size, value, sizeof(value), wvarname);
|
||||
_wgetenv_s(&value_size, value, ARRAYSIZE(value), wvarname);
|
||||
ret = wchar_to_utf8(value);
|
||||
wfree(varname);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue