mirror of
				https://git.proxmox.com/git/efi-boot-shim
				synced 2025-10-31 04:34:15 +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
							
								
									27129a5a05
								
							
						
					
					
						commit
						af25679e16
					
				| @ -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
	 Peter Jones
						Peter Jones