aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index 39b0710cb..e9a2e55a3 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -69,7 +69,7 @@ static void check_file_name(char *ptr, int lineno) {
69 69
70 int len = strlen(ptr); 70 int len = strlen(ptr);
71 // file globbing ('*') is allowed 71 // file globbing ('*') is allowed
72 if (strcspn(ptr, "\\&!?\"'<>%^(){}[];,") != len) { 72 if (strcspn(ptr, "\\&!?\"'<>%^(){}[];,") != (size_t)len) {
73 if (lineno == 0) 73 if (lineno == 0)
74 fprintf(stderr, "Error: \"%s\" is an invalid filename\n", ptr); 74 fprintf(stderr, "Error: \"%s\" is an invalid filename\n", ptr);
75 else 75 else