Skip to content

Commit 3b1e76f

Browse files
committed
Fix MacOSX build
1 parent 3d42dc9 commit 3b1e76f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dmidecode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6377,7 +6377,7 @@ int main(int argc, char * const argv[])
63776377
goto exit_free;
63786378
}
63796379

6380-
if((buf = malloc(0x20)) == NULL)
6380+
if ((buf = malloc(0x20)) == NULL)
63816381
{
63826382
perror("malloc");
63836383
ret = 1;
@@ -6390,7 +6390,7 @@ int main(int argc, char * const argv[])
63906390
CFRelease(dataRef);
63916391
IOObjectRelease(service);
63926392

6393-
if (smbios_decode(buf, NULL, FLAG_READ_FROM_API))
6393+
if (smbios_decode(buf, NULL, FLAG_READ_FROM_API, FLAG_NO_FILE_OFFSET))
63946394
{
63956395
found++;
63966396
goto done;

0 commit comments

Comments
 (0)