mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Pass the right size to calloc (* not **).
This commit is contained in:
		@@ -39,7 +39,7 @@ args_create(int argc, ...)
 | 
				
			|||||||
	if (argc == 0)
 | 
						if (argc == 0)
 | 
				
			||||||
		args->argv = NULL;
 | 
							args->argv = NULL;
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		args->argv = xcalloc(argc, sizeof **args->argv);
 | 
							args->argv = xcalloc(argc, sizeof *args->argv);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	va_start(ap, argc);
 | 
						va_start(ap, argc);
 | 
				
			||||||
	for (i = 0; i < argc; i++)
 | 
						for (i = 0; i < argc; i++)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user