Adam Martinson <[email protected]> writes: > + len = vsnprintf(NULL, 0, msg, ap); > + buf = heap_alloc(len+1); > + vsnprintf(buf, len+1, msg, ap);
vsnprintf can also return -1, check how this is done in other places. -- Alexandre Julliard [email protected]
