remove void* to char* cast
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.c
									
									
									
									
									
								
							@@ -43,7 +43,7 @@ Garland generate_garland(unsigned int length) {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		strncpy(color+7, "#\0", 2);
 | 
							strncpy(color+7, "#\0", 2);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		g.lightbulbs[i] = (char*) malloc(9);
 | 
							g.lightbulbs[i] = malloc(9);
 | 
				
			||||||
		strncpy(g.lightbulbs[i], color, 9);
 | 
							strncpy(g.lightbulbs[i], color, 9);
 | 
				
			||||||
		free(color);
 | 
							free(color);
 | 
				
			||||||
		color = NULL;
 | 
							color = NULL;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user