mirror of
				https://git.proxmox.com/git/efi-boot-shim
				synced 2025-11-04 13:10:38 +00:00 
			
		
		
		
	Fix wrong sizeof().
CHAR16* vs CHAR16**, so the result is the same on all platforms. Detected by coverity. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
		
							parent
							
								
									e724cfb1bf
								
							
						
					
					
						commit
						28cd5c6b9a
					
				@ -35,7 +35,7 @@ argsplit(EFI_HANDLE image, int *argc, CHAR16*** ARGV)
 | 
			
		||||
 | 
			
		||||
	(*argc)++;		/* we counted spaces, so add one for initial */
 | 
			
		||||
 | 
			
		||||
	*ARGV = AllocatePool(*argc * sizeof(*ARGV));
 | 
			
		||||
	*ARGV = AllocatePool(*argc * sizeof(**ARGV));
 | 
			
		||||
	if (!*ARGV) {
 | 
			
		||||
		return EFI_OUT_OF_RESOURCES;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user