mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-10 07:00:08 +01:00
increased possible input size for color
This commit is contained in:
1 parent
4b4f92eb74
commit
7cbe1c2359
3 files changed
+6
-5
No files matched your search
+2
-2
@@ -268,9 +268,9 @@ static void parseArguments(int argc, char** argv, FFstate* state)
|
||||
exit(42);
|
||||
}
|
||||
size_t len = strlen(argv[i + 1]);
|
||||
if(len > 7)
|
||||
if(len > 28)
|
||||
{
|
||||
printf("Error: max color string length is 7, %zu given\n", len);
|
||||
printf("Error: max color string length is 28, %zu given\n", len);
|
||||
exit(43);
|
||||
}
|
||||
sprintf(state->color, "\033[%sm", argv[i + 1]);
|
||||
|
||||
Reference in new issue
Block a user