iscsiadm: Fix a (harmless) incorrect sizeof() expression

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
Bart Van Assche
2015-05-05 14:51:49 +02:00
parent d37f120a01
commit e7905028e8

View File

@@ -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;