Fix compile Error

Fixed:
uwufetch.c: In function ‘print_ascii’:
uwufetch.c:732:10: warning: format not a string literal and no format arguments [-Wformat-security]
  732 |   printf(line);
      |          ^~~~
by adding string argument to printf
This commit is contained in:
Oliver Smeeton 2021-08-31 17:10:50 +01:00 committed by GitHub
parent 2fafca5a47
commit dd0a882be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -729,7 +729,7 @@ void print_ascii()
replace(line, "{LPINK}", LPINK);
// For manjaro
replace(line, "{BACKGROUND_GREEN}", "\e[0;42m");
printf(line);
printf("%s", line);
}
// Always set color to NORMAL, so there's no need to do this in every ascii file.
printf(NORMAL);