Valerie Aurora Henson <[email protected]> writes:
> Signed-off-by: Valerie Aurora Henson <[email protected]>
> @@ -1524,18 +1525,12 @@ int lookup_read_master(struct master *master, time_t
> age, void *context)
> goto next;
> }
>
> - blen = strlen(*keyValue) + 1 + strlen(*values) + 2;
> - if (blen > PARSE_MAX_BUF) {
> + if (snprintf(parse_buf, sizeof(parse_buf), "%s %s",
> + *keyValue, *values) > sizeof(parse_buf)) {
I think this should be >=.
Cheers,
Jeff
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs