Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/newfs_udf Fix endian bug also in commented out code



details:   https://anonhg.NetBSD.org/src/rev/ed846df13d4b
branches:  trunk
changeset: 365814:ed846df13d4b
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Apr 26 15:11:42 2022 +0000

description:
Fix endian bug also in commented out code

diffstat:

 sbin/newfs_udf/udf_core.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b18a09e2e73f -r ed846df13d4b sbin/newfs_udf/udf_core.c
--- a/sbin/newfs_udf/udf_core.c Tue Apr 26 15:09:52 2022 +0000
+++ b/sbin/newfs_udf/udf_core.c Tue Apr 26 15:11:42 2022 +0000
@@ -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 @@
                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);



Home | Main Index | Thread Index | Old Index