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).
Modified: trunk/reactos/lib/crt/stdio/vsprintf.c
_____
Modified: trunk/reactos/lib/crt/stdio/vsprintf.c
--- trunk/reactos/lib/crt/stdio/vsprintf.c 2005-09-09 13:35:02 UTC
(rev 17764)
+++ trunk/reactos/lib/crt/stdio/vsprintf.c 2005-09-09 14:47:35 UTC
(rev 17765)
@@ -35,7 +35,7 @@
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 ??
Show replies by date