[dpdk-dev] [PATCH 5/5] Fix usage of fgets in various places
Stephen Hemminger
stephen at networkplumber.org
Mon Feb 23 17:00:35 CET 2015
On Mon, 23 Feb 2015 15:10:00 +0100
Pawel Wodkowski <pawelx.wodkowski at intel.com> wrote:
> Declaration of fgets() is
> char *fgets(char *str, int size, FILE *stream);
>
> Klocwork complain about passing "sizeof()" as size parameter since
> implicit casting size_t to int might cause loss of precision.
>
> Signed-off-by: Pawel Wodkowski <pawelx.wodkowski at intel.com>
NAK this is shooting at Unicorns.
The tool is the problem not the code.
More information about the dev
mailing list