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-06 14:57:14 +02:00
parent d37f120a01
commit e7905028e8
+1 -1
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;