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:
@@ -38,8 +38,7 @@ void ffPrintMemory(FFinstance* instance)
|
||||
}
|
||||
else
|
||||
{
|
||||
FFstrbuf memory;
|
||||
ffStrbufInit(&memory);
|
||||
FF_STRBUF_CREATE(memory);
|
||||
|
||||
ffParseFormatString(&memory, &instance->config.memoryFormat, 3,
|
||||
(FFformatarg){FF_FORMAT_ARG_TYPE_UINT, &used_mem},
|
||||
|
||||
Reference in New Issue
Block a user