diff options
author | epoch <epoch@enzo.thebackupbox.net> | 2020-12-15 16:27:46 -0600 |
---|---|---|
committer | epoch <epoch@enzo.thebackupbox.net> | 2020-12-15 16:27:46 -0600 |
commit | af0cad5c4553bfbb1ffdcaef5fba2c639028f2ac (patch) | |
tree | 537cd5840037baebd5e7c8e25d8a46052f295852 /urimatch.c | |
parent | d38c9f8b33197ec48c63aa7a03df9beed0400b49 (diff) | |
download | uritools-af0cad5c4553bfbb1ffdcaef5fba2c639028f2ac.tar.gz uritools-af0cad5c4553bfbb1ffdcaef5fba2c639028f2ac.zip |
switched from strcmp to fnmatch in urimatch
Diffstat (limited to 'urimatch.c')
-rw-r--r-- | urimatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <fnmatch.h> #define LINE_LENGTH 1024 @@ -10,7 +11,7 @@ int match(char negate,char *part,char *arg) { if(part == 0) return 1;//we found that the part isn't here! } else { if(part) { - if(!strcmp(part,arg)) return 1; + if(!fnmatch(arg,part,FNM_NOESCAPE)) return 1; } } return 0; |