From 2669460c6d771192de240ff94aa67c48f1aace30 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Thu, 22 Feb 2018 14:11:54 -0600 Subject: [PATCH] Resolve potential bad dereference on sectab --- src/apple2.dd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apple2.dd.c b/src/apple2.dd.c index ec569f5..b30e27c 100644 --- a/src/apple2.dd.c +++ b/src/apple2.dd.c @@ -95,6 +95,9 @@ apple2_dd_sector_num(int type, int sect) sectab = prodos; break; + // We also allow default behavior to mimic NIBBLE, but there's + // probably no "right" default behavior to use. + default: case DD_NIBBLE: return sect; }