summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/fdi_dsk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/fdi_dsk.cpp')
-rw-r--r--src/lib/formats/fdi_dsk.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/formats/fdi_dsk.cpp b/src/lib/formats/fdi_dsk.cpp
index 71805508ab2..edeeeea65ad 100644
--- a/src/lib/formats/fdi_dsk.cpp
+++ b/src/lib/formats/fdi_dsk.cpp
@@ -19,6 +19,8 @@
#include "imageutl.h"
#include "flopimg_legacy.h"
+#include "multibyte.h"
+
/***************************************************************************
PARAMETERS
***************************************************************************/
@@ -237,7 +239,7 @@ FLOPPY_CONSTRUCT( fdi_dsk_construct )
floppy_image_read(floppy, &header, 0, sizeof(header));
tag->version = header.version[0];
- tag->tracks = pick_integer_be(header.ltrack, 0, 2) + 1;
+ tag->tracks = get_u16be(header.ltrack) + 1;
tag->heads = header.lhead + 1;
if (LOG)