commit | f7bc0fe709daf7dc9a843084e2712d6c3eca30a7 | [log] [tgz] |
---|---|---|
author | Robert Middleton <rm5248@users.noreply.github.com> | Tue Dec 29 11:13:24 2020 -0500 |
committer | GitHub <noreply@github.com> | Tue Dec 29 11:13:24 2020 -0500 |
tree | 322c23efc1014b72ec29129c807a477993b2bfc8 | |
parent | 84385782dce8b8a9742bc46775845cf6ea368062 [diff] |
Fix build on Windows with wchar (#47)
diff --git a/src/main/cpp/syslogappender.cpp b/src/main/cpp/syslogappender.cpp index 65a17fd..18e6478 100644 --- a/src/main/cpp/syslogappender.cpp +++ b/src/main/cpp/syslogappender.cpp
@@ -337,7 +337,8 @@ it++, current++ ){ char buf[12]; apr_snprintf( buf, sizeof(buf), "(%d/%d)", current, packets.size() ); - it->append( buf ); + LOG4CXX_DECODE_CHAR(str, buf); + it->append( str ); } }else{ packets.push_back( msg );