diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/udhcp/files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index e2002460d..f6003ff66 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c @@ -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; |