mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 05:04:17 +01:00
ffGetFileContent now uses FFstrbuf for preventing buffer overflows
This commit is contained in:
+1
-2
@@ -29,8 +29,7 @@ void ffPrintShell(FFinstance* instance)
|
||||
|
||||
ffPrintLogoAndKey(instance, "Shell");
|
||||
|
||||
FFstrbuf shell;
|
||||
ffStrbufInit(&shell);
|
||||
FF_STRBUF_CREATE(shell);
|
||||
|
||||
if(!ffStrbufIsEmpty(&instance->config.shellFormat))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user