mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 13:14:21 +01:00
ffGetFileContent now uses FFstrbuf for preventing buffer overflows
This commit is contained in:
+1
-2
@@ -11,8 +11,7 @@ static void handleGPU(FFinstance* instance, struct pci_access* pacc, struct pci_
|
||||
if(ffPrintCachedValue(instance, key))
|
||||
return;
|
||||
|
||||
FFstrbuf gpu;
|
||||
ffStrbufInit(&gpu);
|
||||
FF_STRBUF_CREATE(gpu);
|
||||
|
||||
char vendor[512];
|
||||
ffpci_lookup_name(pacc, vendor, sizeof(vendor), PCI_LOOKUP_VENDOR, dev->vendor_id, dev->device_id);
|
||||
|
||||
Reference in New Issue
Block a user