Do not read past the end of fmt_desc[]
[fio.git] / lib / pattern.h
index 2d655ad0d059dbc6bb8bd57069ae11d059a980a6..a6d9d6b4275cf863c86c0b9978fa4dd36b239e80 100644 (file)
@@ -24,7 +24,6 @@ struct pattern_fmt {
 int parse_and_fill_pattern(const char *in, unsigned int in_len,
                           char *out, unsigned int out_len,
                           const struct pattern_fmt_desc *fmt_desc,
-                          unsigned int fmt_desc_sz,
                           struct pattern_fmt *fmt,
                           unsigned int *fmt_sz_out);