Module Name: src
Committed By: reinoud
Date: Tue Apr 26 15:11:42 UTC 2022
Modified Files:
src/sbin/newfs_udf: udf_core.c
Log Message:
Fix endian bug also in commented out code
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sbin/newfs_udf/udf_core.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/newfs_udf/udf_core.c
diff -u src/sbin/newfs_udf/udf_core.c:1.8 src/sbin/newfs_udf/udf_core.c:1.9
--- src/sbin/newfs_udf/udf_core.c:1.8 Tue Apr 26 15:09:52 2022
+++ src/sbin/newfs_udf/udf_core.c Tue Apr 26 15:11:42 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_core.c,v 1.8 2022/04/26 15:09:52 reinoud Exp $ */
+/* $NetBSD: udf_core.c,v 1.9 2022/04/26 15:11:42 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008, 2021, 2022 Reinoud Zandijk
@@ -30,7 +30,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: udf_core.c,v 1.8 2022/04/26 15:09:52 reinoud Exp $");
+__RCSID("$NetBSD: udf_core.c,v 1.9 2022/04/26 15:11:42 reinoud Exp $");
#include <stdio.h>
#include <stdlib.h>
@@ -3006,7 +3006,7 @@ udf_create_VAT(union dscrptr **vat_dscr,
fe->l_ad = udf_rw32(sizeof(struct long_ad));
blks = UDF_ROUNDUP(inf_len, context.sector_size) /
context.sector_size;
- fe->logblks_rec = udf_rw32(blks);
+ fe->logblks_rec = udf_rw64(blks);
vat_len = sizeof(struct file_entry)-1 - UDF_DESC_TAG_LENGTH;
vat_len += udf_rw32(fe->l_ad) + udf_rw32(fe->l_ea);