Re: [RFC PATCH V2] core_pattern: fix long parameters was truncated by core_pattern handler

From: Denys Vlasenko
Date: Mon Aug 02 2010 - 10:30:35 EST


> +                               rc = snprintf(NULL, 0, "%s", current->comm);

rc = strlen(current->comm) would be smaller

--
vda
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/