mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
ffGetFileContent now uses FFstrbuf for preventing buffer overflows
This commit is contained in:
+1
-2
@@ -35,8 +35,7 @@ void ffPrintCPU(FFinstance* instance)
|
||||
|
||||
ffPrintLogoAndKey(instance, "CPU");
|
||||
|
||||
FFstrbuf cpu;
|
||||
ffStrbufInit(&cpu);
|
||||
FF_STRBUF_CREATE(cpu);
|
||||
|
||||
if(ffStrbufIsEmpty(&instance->config.cpuFormat))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user