Browse Source

Typo

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
c0ec119ede
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/tests/dhcptest.c

+ 2
- 2
src/tests/dhcptest.c View File

82
 
82
 
83
 	lun = strtoul ( rp_components[RP_LUN], NULL, 0 );
83
 	lun = strtoul ( rp_components[RP_LUN], NULL, 0 );
84
 	
84
 	
85
-	dhcp_snprintf ( initiator_iqn, sizeof ( initiator_iqn ),
85
+	dhcp_snprintf ( initiator_iqn_buf, sizeof ( initiator_iqn_buf ),
86
 			find_global_dhcp_option ( DHCP_ISCSI_INITIATOR_IQN ) );
86
 			find_global_dhcp_option ( DHCP_ISCSI_INITIATOR_IQN ) );
87
-	if ( ! *initiator_iqn )
87
+	if ( ! initiator_iqn_buf[0] )
88
 		initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
88
 		initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
89
 	dhcp_snprintf ( username, sizeof ( username ),
89
 	dhcp_snprintf ( username, sizeof ( username ),
90
 			find_global_dhcp_option ( DHCP_EB_USERNAME ) );
90
 			find_global_dhcp_option ( DHCP_EB_USERNAME ) );

Loading…
Cancel
Save