Some small fixes.
This commit is contained in:
@@ -1348,13 +1348,13 @@ load_floppy_and_cdrom_drives(void)
|
|||||||
p = ini_section_get_string(cat, temp, NULL);
|
p = ini_section_get_string(cat, temp, NULL);
|
||||||
if (p) {
|
if (p) {
|
||||||
if (path_abs(p)) {
|
if (path_abs(p)) {
|
||||||
if (strlen(p) > 511)
|
if (strlen(p) > 255)
|
||||||
fatal("load_floppy_and_cdrom_drives(): strlen(p) > 511 "
|
fatal("load_floppy_and_cdrom_drives(): strlen(p) > 255 "
|
||||||
"(fdd_image_history[%i][%i])\n", c, i);
|
"(fdd_image_history[%i][%i])\n", c, i);
|
||||||
else
|
else
|
||||||
snprintf(fdd_image_history[c][i], 511, "%s", p);
|
snprintf(fdd_image_history[c][i], 255, "%s", p);
|
||||||
} else
|
} else
|
||||||
snprintf(fdd_image_history[c][i], 511, "%s%$s%s", usr_path,
|
snprintf(fdd_image_history[c][i], 255, "%s%$s%s", usr_path,
|
||||||
path_get_slash(usr_path), p);
|
path_get_slash(usr_path), p);
|
||||||
path_normalize(fdd_image_history[c][i]);
|
path_normalize(fdd_image_history[c][i]);
|
||||||
}
|
}
|
||||||
|
@@ -12,11 +12,9 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Authors: Sarah Walker, <https://pcem-emulator.co.uk/>
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
||||||
* Miran Grca, <mgrca8@gmail.com>
|
|
||||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||||
*
|
*
|
||||||
* Copyright 2008-2020 Sarah Walker.
|
|
||||||
* Copyright 2016-2020 Miran Grca.
|
* Copyright 2016-2020 Miran Grca.
|
||||||
* Copyright 2017-2020 Fred N. van Kempen.
|
* Copyright 2017-2020 Fred N. van Kempen.
|
||||||
*/
|
*/
|
||||||
@@ -742,7 +740,7 @@ serial_rcvr_d_empty_evt(void *priv)
|
|||||||
{
|
{
|
||||||
serial_t *dev = (serial_t *) priv;
|
serial_t *dev = (serial_t *) priv;
|
||||||
|
|
||||||
dev->lsr = (dev->lsr & 0xfe) | !fifo_get_empty(dev->rcvr_fifo);
|
dev->lsr = (dev->lsr & 0xfe) | (fifo_get_empty(dev->rcvr_fifo) ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user