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:
@@ -9,8 +9,7 @@ void ffPrintKernel(FFinstance* instance)
|
||||
return;
|
||||
}
|
||||
|
||||
FFstrbuf kernel;
|
||||
ffStrbufInit(&kernel);
|
||||
FF_STRBUF_CREATE(kernel);
|
||||
|
||||
ffParseFormatString(&kernel, &instance->config.kernelFormat, 3,
|
||||
(FFformatarg){FF_FORMAT_ARG_TYPE_STRING, instance->state.utsname.sysname},
|
||||
|
||||
Reference in New Issue
Block a user