summaryrefslogtreecommitdiffstats
path: root/src/lib/formats/upd765_dsk.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-11-29 14:10:27 +1100
committer Vas Crabb <vas@vastheman.com>2018-11-29 14:10:27 +1100
commitc2dc4316bdfb59972c2d1b204f46f059f898ea0f (patch)
tree8dac044df4a6e9f53af08fd4ae32a46c74405ab6 /src/lib/formats/upd765_dsk.cpp
parentb568e6deab3edaea3f4a15a0253ad64fc5a9897b (diff)
(nw) fix stuff:
* Add per-language compiler flag options to help with exotic setups * Get rid of a potention buffer overrun in NuBus image card * CHAR_WIDTH and LONG_WIDTH are preprocessor macros in limits.h with glibc if __GLIBC_USE (IEC_60559_BFP_EXT) is enabled - avoid using them as names * Make formats/upd765_dsk.h slightly safer with defualt initialisers for key format members * Don't rely on random BSS data being zero in imagedev/floppy.cpp
Diffstat (limited to 'src/lib/formats/upd765_dsk.cpp')
-rw-r--r--src/lib/formats/upd765_dsk.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/formats/upd765_dsk.cpp b/src/lib/formats/upd765_dsk.cpp
index 67c7ce8b653..c8355b7b691 100644
--- a/src/lib/formats/upd765_dsk.cpp
+++ b/src/lib/formats/upd765_dsk.cpp
@@ -11,9 +11,8 @@
#include "emu.h" // emu_fatalerror
#include "formats/upd765_dsk.h"
-upd765_format::upd765_format(const format *_formats) : file_header_skip_bytes(0), file_footer_skip_bytes(0)
+upd765_format::upd765_format(const format *_formats) : file_header_skip_bytes(0), file_footer_skip_bytes(0), formats(_formats)
{
- formats = _formats;
}
int upd765_format::find_size(io_generic *io, uint32_t form_factor) const