http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dcd3c4
)
cmd.exe: Don't use wvsprintf on sysv-style varargs, use a libwine function instead.
author
Alexandre Julliard
<julliard@winehq.org>
Fri, 2 Jan 2009 21:01:06 +0000
(22:01 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Sat, 3 Jan 2009 10:38:26 +0000
(11:38 +0100)
programs/cmd/wcmdmain.c
patch
|
blob
|
blame
|
history
diff --git
a/programs/cmd/wcmdmain.c
b/programs/cmd/wcmdmain.c
index b135a169e5a6358a7d6f9285775bc71c860ea1d6..e4f29a1f35014b386d4f8ef076902ed7648ac43e 100644
(file)
--- a/
programs/cmd/wcmdmain.c
+++ b/
programs/cmd/wcmdmain.c
@@
-158,7
+158,7
@@
void WCMD_output (const WCHAR *format, ...) {
int ret;
va_start(ap,format);
- ret =
wvsprintf (string
, format, ap);
+ ret =
vsnprintfW(string, sizeof(string)/sizeof(WCHAR)
, format, ap);
if( ret >= (sizeof(string)/sizeof(WCHAR))) {
WINE_ERR("Output truncated in WCMD_output\n" );
ret = (sizeof(string)/sizeof(WCHAR)) - 1;