Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xdu: Make format string a string lateral
Clang 4.0.0 shows the warnings below. ``` $ CC=clang make clang -Wall -Werror -Wextra -pedantic -std=gnu99 -c -o xdu.o xdu.c xdu.c:218:29: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] fprintf(stderr, usage); ^~~~~ xdu.c:218:29: note: treat the string as an argument to avoid this fprintf(stderr, usage); ^ "%s", xdu.c:226:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] fprintf(stderr, usage); ^~~~~ xdu.c:226:25: note: treat the string as an argument to avoid this fprintf(stderr, usage); ^ "%s", ```
- Loading branch information