buf_size: fix bug caused by get_implied_max() returning s32max
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Feb 2013 14:20:33 +0000 (17:20 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Feb 2013 14:20:33 +0000 (17:20 +0300)
commit158582e1dbe1ea175e69463e7f9abb0f67563728
tree2901d37cab26e113fd539f1f61a5216dae4ada76
parent1a429ed1cb1ffd8d100e5669c3ad44d628d0e735
buf_size: fix bug caused by get_implied_max() returning s32max

Before we would never get s32max here so len.value + 1 was always positive
and probably a more reasonable positive at that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_buf_size.c