resvtest.c: fix invalid use of sizeof()
authorJeff Moyer <jmoyer@redhat.com>
Tue, 17 Jun 2014 23:29:57 +0000 (09:29 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 17 Jun 2014 23:29:57 +0000 (09:29 +1000)
commit28f8c4c7fbfda4aa321185cab0cbbca19cbe6954
tree88fd5b7c662786526a9eeaeab7903ac2ae5230aa
parentc1ff85dfb6352424c1f55566dfd50c6bece8d6e4
resvtest.c: fix invalid use of sizeof()

sizeof(pointer) will give you the size of a pointer, not the space
allocated to it.  I noticed this when gcc complained:

resvtest.c:76:33: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
  memset(writebuffer, 'A', sizeof(writebuffer));

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/resvtest.c