Fixed a few additional sizeof locations

main
Sam Lantinga 2023-03-09 15:25:48 -08:00
parent c6443d86c9
commit 21e444b2e7
3 changed files with 4 additions and 4 deletions

View File

@ -370,7 +370,7 @@ static int CPU_haveARMSIMD(void)
fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC);
if (fd >= 0) {
Elf32_auxv_t aux;
while (read(fd, &aux, sizeof aux) == sizeof aux) {
while (read(fd, &aux, sizeof(aux)) == sizeof(aux)) {
if (aux.a_type == AT_PLATFORM) {
const char *plat = (const char *)aux.a_un.a_val;
if (plat) {