We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b2fab commit 95a44d3Copy full SHA for 95a44d3
src/detection/gpu/gpu_haiku.c
@@ -14,7 +14,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
14
.info = &dev,
15
};
16
17
- for (cmd.index = 0; ioctl(pokefd, POKE_GET_NTH_PCI_INFO, &cmd) == B_OK && cmd.status == B_OK; ++cmd.index)
+ for (cmd.index = 0; ioctl(pokefd, POKE_GET_NTH_PCI_INFO, &cmd, sizeof(cmd)) == B_OK && cmd.status == B_OK; ++cmd.index)
18
{
19
if (dev.class_base != 0x03 /*PCI_BASE_CLASS_DISPLAY*/)
20
continue;
0 commit comments