From 39ed7afe2b5c4a6f73fa32db7f149310025ab42a Mon Sep 17 00:00:00 2001 From: bohu Date: Tue, 9 Oct 2018 06:06:56 -0700 Subject: [PATCH] fs_mgr: fix incorrect parameter type BUG: 117426573 Change-Id: Iffbdd3763dd19aa527bf805918a566477d122cfc --- libcutils/partition_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcutils/partition_utils.cpp b/libcutils/partition_utils.cpp index 6735d6cc8..2211ff6ad 100644 --- a/libcutils/partition_utils.cpp +++ b/libcutils/partition_utils.cpp @@ -25,7 +25,7 @@ #include -static int only_one_char(char *buf, int len, char c) +static int only_one_char(uint8_t *buf, int len, uint8_t c) { int i, ret; @@ -41,7 +41,7 @@ static int only_one_char(char *buf, int len, char c) int partition_wiped(char *source) { - char buf[4096]; + uint8_t buf[4096]; int fd, ret; if ((fd = open(source, O_RDONLY)) < 0) {