mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 22:40:54 +01:00
Logo: don't parse file paths as builtin logo name
This commit is contained in:
1 parent
eae69049b2
commit
c3ce5ac947
1 file changed
+7
@@ -436,6 +436,13 @@ static void logoPrintNone(void)
|
||||
|
||||
static bool logoPrintBuiltinIfExists(const FFstrbuf* name, FFLogoSize size)
|
||||
{
|
||||
if(name->chars[0] == '~' || name->chars[0] == '.' || name->chars[0] == '/'
|
||||
#if _WIN32
|
||||
|| (ffCharIsEnglishAlphabet(name->chars[0]) && name->chars[1] == ':') // Windows drive letter
|
||||
#endif
|
||||
)
|
||||
return false; // Paths
|
||||
|
||||
if(ffStrbufIgnCaseEqualS(name, "none"))
|
||||
{
|
||||
logoPrintNone();
|
||||
|
||||
Reference in new issue
Block a user