diff --git a/lib/pdu.c b/lib/pdu.c index dc7685fa..5b67bee6 100644 --- a/lib/pdu.c +++ b/lib/pdu.c @@ -79,12 +79,18 @@ iscsi_itt_post_increment(struct iscsi_context *iscsi) { } void iscsi_dump_pdu_header(struct iscsi_context *iscsi, unsigned char *data) { - char dump[ISCSI_RAW_HEADER_SIZE*3+1]={0}; + char dump1[33*3+1]={0}; + char dump2[(ISCSI_RAW_HEADER_SIZE-33)*3+1]={0}; + const char *opcode; int i; - for (i=0;i