X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=parse.c;h=9e3c5b17e6707ae0da22a5c8791d7d20a957a1f4;hp=d8527b50d8877b8644529d4764bc374522a070bc;hb=a0741cbb98a0399d26e90cb05604bbfb20a45bc6;hpb=15dc1934435dc84d66547c4fc92d936224d7238f diff --git a/parse.c b/parse.c index d8527b50..9e3c5b17 100644 --- a/parse.c +++ b/parse.c @@ -658,7 +658,7 @@ static char *option_dup_subs(const char *opt) ssize_t nchr = OPT_LEN_MAX; size_t envlen; - if (strlen(in) + 1 > OPT_LEN_MAX) { + if (strlen(opt) + 1 > OPT_LEN_MAX) { fprintf(stderr, "OPT_LEN_MAX (%d) is too small\n", OPT_LEN_MAX); return NULL; }