Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

redsocks now compiles with libevent-2.0

  • Loading branch information...
commit d517e650ef238db35f0df5061cba096a8ba596ec 1 parent 79e22a6
@darkk authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  log.c
  2. +1 −1  redsocks.c
View
2  log.c
@@ -143,7 +143,7 @@ void _log_vwrite(const char *file, int line, const char *func, int do_errno, int
if (buff) {
evbuffer_add_vprintf(buff, fmt, ap);
- message = (const char*)buff->buffer;
+ message = (const char*)EVBUFFER_DATA(buff);
}
else
message = lowmem;
View
2  redsocks.c
@@ -181,7 +181,7 @@ void redsocks_log_write_plain(
va_start(ap, orig_fmt);
if (fmt) {
errno = saved_errno;
- _log_vwrite(file, line, func, do_errno, priority, (const char*)fmt->buffer, ap);
+ _log_vwrite(file, line, func, do_errno, priority, (const char*)EVBUFFER_DATA(fmt), ap);
evbuffer_free(fmt);
}
va_end(ap);
Please sign in to comment.
Something went wrong with that request. Please try again.