diff options
author | Han Ming Ong <hanming@apple.com> | 2012-03-07 00:32:38 +0000 |
---|---|---|
committer | Han Ming Ong <hanming@apple.com> | 2012-03-07 00:32:38 +0000 |
commit | e86f8f4df9336ca29c3c4e351031c9cdb8fb3725 (patch) | |
tree | 45f9fbe51ce7972a06687d2f752e8a897c2fa88d | |
parent | ecc124733a28cd139ad07f06f2acd2161d171f55 (diff) | |
download | llvm-e86f8f4df9336ca29c3c4e351031c9cdb8fb3725.zip llvm-e86f8f4df9336ca29c3c4e351031c9cdb8fb3725.tar.gz llvm-e86f8f4df9336ca29c3c4e351031c9cdb8fb3725.tar.bz2 |
<rdar://10996650>
Passed in the right number of parameters for CFDictionaryCreate
llvm-svn: 152182
-rw-r--r-- | lldb/source/Host/macosx/Host.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 525e821..4b3d6ea 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -1315,7 +1315,7 @@ getXPCAuthorization (ProcessLaunchInfo &launch_info) CFStringRef prompt = CFSTR("The debugger needs administrator rights to debug a root process."); CFStringRef keys[] = { CFSTR("en") }; CFTypeRef values[] = { prompt }; - CFDictionaryRef promptDict = CFDictionaryCreate(kCFAllocatorDefault, (const void **)keys, (const void **)values, 2, &kCFCopyStringDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); + CFDictionaryRef promptDict = CFDictionaryCreate(kCFAllocatorDefault, (const void **)keys, (const void **)values, 1, &kCFCopyStringDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFStringRef keys1[] = { CFSTR("class"), CFSTR("group"), CFSTR("comment"), CFSTR("default-prompt"), CFSTR("shared") }; CFTypeRef values1[] = { CFSTR("user"), CFSTR("admin"), CFSTR("com.apple.lldb.LaunchUsingXPC"), promptDict, kCFBooleanFalse }; |