Merge "Move "fastboot oem" to std::string." am: 54182110ae
am: 3547ba5e3f
Change-Id: I72c9ebde8b45df2e1fc9a3d303c0ab6547c6834b
This commit is contained in:
commit
a251228645
1 changed files with 6 additions and 9 deletions
|
@ -1245,20 +1245,17 @@ static int do_bypass_unlock_command(int argc, char **argv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int do_oem_command(int argc, char **argv)
|
||||
{
|
||||
char command[256];
|
||||
static int do_oem_command(int argc, char** argv) {
|
||||
if (argc <= 1) return 0;
|
||||
|
||||
command[0] = 0;
|
||||
while(1) {
|
||||
strcat(command,*argv);
|
||||
std::string command;
|
||||
while (argc > 0) {
|
||||
command += *argv;
|
||||
skip(1);
|
||||
if(argc == 0) break;
|
||||
strcat(command," ");
|
||||
if (argc != 0) command += " ";
|
||||
}
|
||||
|
||||
fb_queue_command(command,"");
|
||||
fb_queue_command(command.c_str(), "");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue