summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibDebug/Dwarf/LineProgram.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibDebug/Dwarf/LineProgram.cpp b/Libraries/LibDebug/Dwarf/LineProgram.cpp
index be96238a18..a6d165db86 100644
--- a/Libraries/LibDebug/Dwarf/LineProgram.cpp
+++ b/Libraries/LibDebug/Dwarf/LineProgram.cpp
@@ -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 });