[Lldb-commits] [lldb] r107281 - /lldb/trunk/source/Commands/CommandCompletions.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Jun 30 06:43:47 PDT 2010
Author: d0k
Date: Wed Jun 30 08:43:47 2010
New Revision: 107281
URL: http://llvm.org/viewvc/llvm-project?rev=107281&view=rev
Log:
Fix an obvious typo and replace deprecated bcopy(3) with memcpy(3).
Modified:
lldb/trunk/source/Commands/CommandCompletions.cpp
Modified: lldb/trunk/source/Commands/CommandCompletions.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandCompletions.cpp?rev=107281&r1=107280&r2=107281&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandCompletions.cpp (original)
+++ lldb/trunk/source/Commands/CommandCompletions.cpp Wed Jun 30 08:43:47 2010
@@ -134,7 +134,7 @@
// the form the user originally typed.
char partial_name_copy[PATH_MAX];
- bcopy (partial_file_name, partial_name_copy, partial_name_len);
+ memcpy(partial_name_copy, partial_file_name, partial_name_len);
partial_name_copy[partial_name_len] = '\0';
// We'll need to save a copy of the remainder for comparision, which we do here.
@@ -167,7 +167,7 @@
partial_name_copy[partial_name_len+1] = '\0';
matches.AppendString(partial_name_copy);
globfree(&glob_buf);
- saw_directory == true;
+ saw_directory = true;
return matches.GetSize();
}
else
More information about the lldb-commits
mailing list