ffGetFileContent now uses FFstrbuf for preventing buffer overflows

This commit is contained in:
Linus Dierheimer
2021-03-21 16:52:17 +01:00
parent 0d3500c66f
commit 101d19a015
24 changed files with 144 additions and 123 deletions
+1 -2
View File
@@ -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},