]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[iscsi] Fix minor typo in ibft_set_ipaddr()
authorMichael Brown <mcb30@ipxe.org>
Thu, 24 Feb 2011 23:39:38 +0000 (23:39 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 24 Feb 2011 23:39:38 +0000 (23:39 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/block/ibft.c

index 932a00b559fe47e22e3e8d721986ea197735a17e..9df362ac0057d1960dab72384bc3fd33c1e8ecd1 100644 (file)
@@ -91,7 +91,7 @@ struct ibft_strings {
  * @v in               IPv4 address
  */
 static void ibft_set_ipaddr ( struct ibft_ipaddr *ipaddr, struct in_addr in ) {
-       memset ( ipaddr, 0, sizeof ( ipaddr ) );
+       memset ( ipaddr, 0, sizeof ( *ipaddr ) );
        if ( in.s_addr ) {
                ipaddr->in = in;
                ipaddr->ones = 0xffff;