buf_size: use type_bytes() instead of array_bytes()
commit33791d8b49d870413ba0948e3dcc4f36c5ac86ee
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Aug 2017 08:53:08 +0000 (21 11:53 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Aug 2017 08:53:08 +0000 (21 11:53 +0300)
tree1c5e0702d388904c1de10273a17a8b6cd136ebe1
parent29af82489dec73a5d9bd085a7fc86e3ebada0bba
buf_size: use type_bytes() instead of array_bytes()

This is sometimes used when we want the number of bytes in a struct member
because we are trying to see if memcpy() overflows.

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