mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[ntcore] Fix dangling pointer in logger (#3465)
This is a breaking change (it changes LogMessage::filename from const char* to std::string) but there should be few users of it.
This commit is contained in:
@@ -71,5 +71,5 @@ void LoggerImpl::Log(unsigned int level, const char* file, unsigned int line,
|
||||
DefaultLogger(level, filename.string().c_str(), line, msg);
|
||||
}
|
||||
}
|
||||
Send(UINT_MAX, 0, level, filename.string().c_str(), line, msg);
|
||||
Send(UINT_MAX, 0, level, filename.string(), line, msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user