This commit is contained in:
Sara Golemon 2005-05-11 05:16:32 +00:00
parent ebfbd22e59
commit 379e510c87

View File

@ -188,7 +188,7 @@ void _libssh2_debug(LIBSSH2_SESSION *session, int context, const char *format, .
len = snprintf(buffer, 1535, "[libssh2] %s: ", contexts[context]);
va_start(vargs, format);
len += vsnprintf(buffer, 1535 - len, format, vargs);
len += vsnprintf(buffer + len, 1535 - len, format, vargs);
buffer[len] = '\n';
va_end(vargs);
write(2, buffer, len + 1);