mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
maxlen is in characters, _cnt is in bytes.
Note: rebuild of lib/crt required for this change to take effect (make crt_clean; make crt) This brings the VMware Tools installer a hell of a lot further (bug 717). svn path=/trunk/; revision=17765
This commit is contained in:
parent
61d669da33
commit
4de7f0f089
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ _vsntprintf(_TCHAR *str, size_t maxlen, const _TCHAR *fmt, va_list ap)
|
|||
|
||||
f._flag = _IOWRT|_IOSTRG|_IOBINARY;
|
||||
f._ptr = (char*)str;
|
||||
f._cnt = maxlen;
|
||||
f._cnt = maxlen * sizeof(_TCHAR);
|
||||
f._file = -1;
|
||||
len = _vftprintf(&f,fmt, ap);
|
||||
// what if the buffer is full ??
|
||||
|
|
Loading…
Reference in a new issue