mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +00:00
iscsiadm: Fix a (harmless) incorrect sizeof() expression
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
@@ -488,7 +488,7 @@ static int user_handle_show_list(struct iscsi_adm_req *req)
|
||||
|
||||
buf_sz = buf_sz ? buf_sz : ISCSI_NAME_LEN;
|
||||
|
||||
buf = calloc(buf_sz, sizeof(char *));
|
||||
buf = calloc(buf_sz, sizeof(*buf));
|
||||
if (!buf) {
|
||||
fprintf(stderr, "Memory allocation failed\n");
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user