mirror of
https://github.com/simh/simh.git
synced 2026-02-27 09:09:46 +00:00
AltairZ80: Fix warnings in altairz80_hdsk.c.
This commit is contained in:
committed by
Mark Pizzolato
parent
8a963d9416
commit
60b333fc53
@@ -692,6 +692,9 @@ static t_stat set_format(UNIT *uptr, int32 val, CONST char *cptr, void *desc) {
|
||||
sim_printf("Cannot set format for not attached unit %i.\n", find_unit_index(uptr));
|
||||
return SCPE_ARG;
|
||||
}
|
||||
|
||||
fmtname[DPB_NAME_LENGTH] = '\0';
|
||||
|
||||
for (i = 0; dpb[i].capac != 0; i++) {
|
||||
if (strncmp(fmtname, dpb[i].name, strlen(fmtname)) == 0) {
|
||||
uptr -> HDSK_FORMAT_TYPE = i;
|
||||
|
||||
Reference in New Issue
Block a user