Fix memset sizeof
This commit is contained in:
parent
45ff61e969
commit
10e777b0f4
@ -494,7 +494,7 @@ default: \
|
||||
|
||||
#define XS_SAVE_SENSE(xs, sense_ptr, slen) do { \
|
||||
(xs)->ccb_h.status |= CAM_AUTOSNS_VALID; \
|
||||
memset(&(xs)->sense_data, 0, sizeof(&(xs)->sense_data));\
|
||||
memset(&(xs)->sense_data, 0, sizeof((xs)->sense_data)); \
|
||||
memcpy(&(xs)->sense_data, sense_ptr, imin(XS_SNSLEN(xs),\
|
||||
slen)); \
|
||||
if (slen < (xs)->sense_len) \
|
||||
|
Loading…
Reference in New Issue
Block a user