From 4017fa399b0018a08bf6ae81fcb6900848034a6f Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 6 Jan 2012 02:01:06 +0000 Subject: Fixed a crasher when trying to load an expression prefix file: % touch /tmp/carp.txt % xcrun lldb (lldb) settings set target.expr-prefix /tmp/carp.txt Segmentation fault llvm-svn: 147646 --- lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp') diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp index 62d85451249..12c104b24de 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp @@ -234,7 +234,7 @@ PlatformRemoteiOS::GetDeviceSupportDirectory() xcode_dir_path.append (xcode_select_prefix_dir); xcode_dir_path.append ("/usr/share/xcode-select/xcode_dir_path"); temp_file_spec.SetFile(xcode_dir_path.c_str(), false); - size_t bytes_read = temp_file_spec.ReadFileContents(0, developer_dir_path, sizeof(developer_dir_path)); + size_t bytes_read = temp_file_spec.ReadFileContents(0, developer_dir_path, sizeof(developer_dir_path), NULL); if (bytes_read > 0) { developer_dir_path[bytes_read] = '\0'; -- cgit v1.2.3