fix: typo
This commit is contained in:
		
							parent
							
								
									435110e61d
								
							
						
					
					
						commit
						521e82b7b5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -232,7 +232,7 @@ api_v1_controllers_discover_POST(struct mg_connection *nc, struct http_message *
 | 
			
		|||
 | 
			
		||||
                        known_controllers[i]->active = 1;
 | 
			
		||||
                        strncpy(known_controllers[i]->name, discovered_name, discovered_name_len);
 | 
			
		||||
                        strcpy(discovered_controller->ip, inet_ntoa(addr.sin_addr));
 | 
			
		||||
                        strcpy(known_controllers[i]->ip, inet_ntoa(addr.sin_addr));
 | 
			
		||||
                        known_controllers[i]->name[discovered_name_len] = '\0';
 | 
			
		||||
                        known_controllers[i]->port = discovered_command_port;
 | 
			
		||||
                        known_controllers[i]->relay_count = discovered_relay_count;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue