Use strcasestr() for matching filename_prefix keywords
authorJens Axboe <axboe@kernel.dk>
Fri, 5 Apr 2013 12:44:51 +0000 (14:44 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Apr 2013 12:44:51 +0000 (14:44 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c

diff --git a/init.c b/init.c
index 0da878d52ff135ebe20efe3081742dc674e14252..92b3e5b2a4a78f50b669fb9312580d7124bbb9cf 100644 (file)
--- a/init.c
+++ b/init.c
@@ -26,6 +26,7 @@
 #include "idletime.h"
 
 #include "lib/getopt.h"
+#include "lib/strcasestr.h"
 
 const char fio_version_string[] = FIO_VERSION;
 
@@ -838,7 +839,7 @@ static char *make_filename(char *buf, struct thread_options *o,
                        size_t pre_len, post_start = 0;
                        char *str, *dst = copy;
 
-                       str = strstr(buf, f->keyword);
+                       str = strcasestr(buf, f->keyword);
                        if (!str)
                                break;