whoops
authorRuss Dill <Russ.Dill@asu.edu>
Tue, 16 Dec 2003 01:33:38 +0000 (01:33 -0000)
committerRuss Dill <Russ.Dill@asu.edu>
Tue, 16 Dec 2003 01:33:38 +0000 (01:33 -0000)
networking/udhcp/files.c

index e2002460d0a845d933bf69b4634ec31f09d85315..f6003ff66d0f119030422af55943df628c02e1a1 100644 (file)
@@ -248,7 +248,7 @@ void write_leases(void)
                                else leases[i].expires -= curr;
                        } /* else stick with the time we got */
                        leases[i].expires = htonl(leases[i].expires);
-                       fwrite(leases[i], sizeof(sturct dhcpOfferedAddr), 1, fp);
+                       fwrite(&leases[i], sizeof(struct dhcpOfferedAddr), 1, fp);
 
                        /* Then restore it when done. */
                        leases[i].expires = tmp_time;