Commit 043828bd authored by Monty's avatar Monty

Fixed wrong length in my_default.c

This couldn't cause any bugs as ptr was zero terminated, but still better
to have the length correct.
parent df4ab26a
...@@ -740,7 +740,7 @@ static int search_default_file_with_ext(struct handle_option_ctx *ctx, ...@@ -740,7 +740,7 @@ static int search_default_file_with_ext(struct handle_option_ctx *ctx,
for ( ; my_isspace(&my_charset_latin1,end[-1]) ; end--) ; for ( ; my_isspace(&my_charset_latin1,end[-1]) ; end--) ;
end[0]=0; end[0]=0;
strmake(curr_gr, ptr, MY_MIN((size_t) (end-ptr)+1, sizeof(curr_gr)-1)); strmake(curr_gr, ptr, MY_MIN((size_t) (end-ptr), sizeof(curr_gr)-1));
found_group= find_type(curr_gr, ctx->group, FIND_TYPE_NO_PREFIX) found_group= find_type(curr_gr, ctx->group, FIND_TYPE_NO_PREFIX)
? PARSE : SKIP; ? PARSE : SKIP;
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment