Fixed cache size decoding read from a label.

PR:		kern/144732
Submitted by:	Eugene Grosbein
MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2010-07-14 08:22:00 +00:00
parent 0356e5fcb5
commit cf1457e4fd

View File

@ -139,7 +139,7 @@ cache_metadata_decode(const u_char *data, struct g_cache_metadata *md)
md->md_version = le32dec(data + 16);
bcopy(data + 20, md->md_name, sizeof(md->md_name));
md->md_bsize = le32dec(data + 36);
md->md_size = le16dec(data + 40);
md->md_size = le32dec(data + 40);
md->md_provsize = le64dec(data + 44);
}