4210fa
From af25679e166da9bd32a0ed7fbf67a408dda7f71a Mon Sep 17 00:00:00 2001
4210fa
From: Peter Jones <pjones@redhat.com>
4210fa
Date: Fri, 15 Nov 2013 09:21:53 -0500
4210fa
Subject: [PATCH 14/74] Fix wrong sizeof().
4210fa
4210fa
CHAR16* vs CHAR16**, so the result is the same on all platforms.
4210fa
4210fa
Detected by coverity.
4210fa
4210fa
Signed-off-by: Peter Jones <pjones@redhat.com>
4210fa
---
4210fa
 lib/shell.c | 2 +-
4210fa
 1 file changed, 1 insertion(+), 1 deletion(-)
4210fa
4210fa
diff --git a/lib/shell.c b/lib/shell.c
4210fa
index 51de4e0..7337834 100644
4210fa
--- a/lib/shell.c
4210fa
+++ b/lib/shell.c
4210fa
@@ -35,7 +35,7 @@ argsplit(EFI_HANDLE image, int *argc, CHAR16*** ARGV)
4210fa
 
4210fa
 	(*argc)++;		/* we counted spaces, so add one for initial */
4210fa
 
4210fa
-	*ARGV = AllocatePool(*argc * sizeof(*ARGV));
4210fa
+	*ARGV = AllocatePool(*argc * sizeof(**ARGV));
4210fa
 	if (!*ARGV) {
4210fa
 		return EFI_OUT_OF_RESOURCES;
4210fa
 	}
4210fa
-- 
4210fa
1.9.3
4210fa