Fix Bug in HEAD_STR changing.
This commit is contained in:
parent
05beab4b88
commit
b5d39b7b86
5
main.cpp
5
main.cpp
@ -120,8 +120,8 @@ void RemoteQuery(string PreCode,int ID)
|
||||
}
|
||||
|
||||
/*****************参数设置***************/
|
||||
char* _head_str = (char*)"15080801";
|
||||
const char* const HEAD_STR = _head_str;
|
||||
char _head_str[16];
|
||||
const char* HEAD_STR = _head_str;
|
||||
|
||||
int _num = 40;
|
||||
const int& NUM=_num;
|
||||
@ -184,7 +184,6 @@ int ParseCommand(string Command)
|
||||
}
|
||||
|
||||
printf("设置HEAD_STR中...\n");
|
||||
_head_str=new char[16];
|
||||
memset(_head_str,0,16);
|
||||
strcpy(_head_str,headstr.c_str());
|
||||
printf("设置完成.\n");
|
||||
|
Reference in New Issue
Block a user