Whoops
This commit is contained in:
parent
ebfbd22e59
commit
379e510c87
@ -188,7 +188,7 @@ void _libssh2_debug(LIBSSH2_SESSION *session, int context, const char *format, .
|
|||||||
len = snprintf(buffer, 1535, "[libssh2] %s: ", contexts[context]);
|
len = snprintf(buffer, 1535, "[libssh2] %s: ", contexts[context]);
|
||||||
|
|
||||||
va_start(vargs, format);
|
va_start(vargs, format);
|
||||||
len += vsnprintf(buffer, 1535 - len, format, vargs);
|
len += vsnprintf(buffer + len, 1535 - len, format, vargs);
|
||||||
buffer[len] = '\n';
|
buffer[len] = '\n';
|
||||||
va_end(vargs);
|
va_end(vargs);
|
||||||
write(2, buffer, len + 1);
|
write(2, buffer, len + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user