but I just had to laugh
This commit is contained in:
		| @@ -82,7 +82,7 @@ namespace netprot { | ||||
| 		char name[32]; | ||||
| 		uint64_t id = 0; | ||||
| 		TeamInfo() {} | ||||
| 		TeamInfo(TeamInfo* tem) : id(tem->id) { strcpy_s(tem->name, name); } | ||||
| 		TeamInfo(TeamInfo* tem) : id(tem->id) { strcpy(tem->name, name); } | ||||
| 	}; | ||||
|  | ||||
| 	struct LoginInfo {									// cli <-> srv			TCP			once | ||||
| @@ -90,7 +90,7 @@ namespace netprot { | ||||
| 		uint64_t sid = 0,  | ||||
| 			     tid = 0; | ||||
| 		LoginInfo() {} | ||||
| 		LoginInfo(LoginInfo* ply): sid(ply->sid), tid(ply->tid) { strcpy_s(ply->name, name); } | ||||
| 		LoginInfo(LoginInfo* ply): sid(ply->sid), tid(ply->tid) { strcpy(ply->name, name); } | ||||
| 	}; | ||||
|  | ||||
| 	struct PlayerInfo {									// cli <-> srv			TCP			once | ||||
| @@ -98,7 +98,7 @@ namespace netprot { | ||||
| 		uint64_t id = 0, | ||||
| 				 tid = 0; | ||||
| 		PlayerInfo() {} | ||||
| 		PlayerInfo(PlayerInfo* log) : id(log->id), tid(log->tid) { strcpy_s(log->name, name); } | ||||
| 		PlayerInfo(PlayerInfo* log) : id(log->id), tid(log->tid) { strcpy(log->name, name); } | ||||
| 	}; | ||||
|  | ||||
| 	struct GameInfo {									// cli <-> srv			TCP			event (before game start)/ once | ||||
| @@ -115,14 +115,14 @@ namespace netprot { | ||||
| 			dest_team_id = 0; | ||||
| 		char mess[140]; // Good 'nough for twitr, good 'nough for me. | ||||
| 		Chat() {} | ||||
| 		Chat(Chat* cha) : src_id(cha->src_id), dest_id(cha->dest_id), dest_team_id(cha->dest_team_id) { strcpy_s(cha->mess, mess); } | ||||
| 		Chat(Chat* cha) : src_id(cha->src_id), dest_id(cha->dest_id), dest_team_id(cha->dest_team_id) { strcpy(cha->mess, mess); } | ||||
| 	}; | ||||
|  | ||||
| 	struct ErrorLog {									// srv -> cli			TCP			event | ||||
| 		char mess[140]; | ||||
| 		bool is_fatal; | ||||
| 		ErrorLog() {}; | ||||
| 		ErrorLog(ErrorLog* err) : is_fatal(err->is_fatal) { strcpy_s(err->mess, mess); } | ||||
| 		ErrorLog(ErrorLog* err) : is_fatal(err->is_fatal) { strcpy(err->mess, mess); } | ||||
| 	}; | ||||
|  | ||||
| 	void Serialize(Input* in, char* buf[], uint32_t* buflen); // cli | ||||
|   | ||||
		Reference in New Issue
	
	Block a user