Skip to content

Commit 1d9b975

Browse files
Fix unique_ptr type (#124)
1 parent cd6f4a7 commit 1d9b975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void log(const char* file, int line, LogLevel level, const char* fmt, ...)
108108
if (level >= g_logger.getLogLevel())
109109
{
110110
size_t buffer_size = 1024;
111-
std::unique_ptr<char> buffer;
111+
std::unique_ptr<char[]> buffer;
112112
buffer.reset(new char[buffer_size]);
113113

114114
va_list args;

0 commit comments

Comments
 (0)