1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 02:45:07 +00:00

LibDebug: Oops, file:line info should have '/' between directory & file

This commit is contained in:
Andreas Kling 2020-11-15 15:11:16 +01:00
parent 485d28298a
commit 42bc518d70

View file

@ -101,8 +101,9 @@ void LineProgram::append_to_line_info()
String directory = m_source_directories[m_source_files[m_file_index].directory_index];
StringBuilder full_path(directory.length() + m_source_files[m_file_index].name.length());
StringBuilder full_path(directory.length() + m_source_files[m_file_index].name.length() + 1);
full_path.append(directory);
full_path.append('/');
full_path.append(m_source_files[m_file_index].name);
m_lines.append({ m_address, full_path.to_string(), m_line });