aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Serpell <daniel.serpell@gmail.com>2019-12-20 21:18:35 -0300
committerDaniel Serpell <daniel.serpell@gmail.com>2019-12-20 21:18:35 -0300
commite3431dea05d3d9dc425953e9a73c38c13bd47852 (patch)
tree4e4f745ec4aa374f5b756abe2cc323141e280b71
parente96a85085206d697bc4c0b865ff37907093f6f69 (diff)
downloademu2-e3431dea05d3d9dc425953e9a73c38c13bd47852.tar.gz
Fixes filename length in FCB.
-rw-r--r--src/dosnames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dosnames.c b/src/dosnames.c
index b242c5c..ffa4634 100644
--- a/src/dosnames.c
+++ b/src/dosnames.c
@@ -551,7 +551,7 @@ char *dos_unix_path_fcb(int addr, int force)
drive = drive - 1;
// And copy file name
memcpy(fcb_name, &memory[addr+1], 11);
- fcb_name[12] = 0;
+ fcb_name[11] = 0;
debug(debug_dos, "\tconvert dos fcb name %c:'%s'\n", drive + 'A', fcb_name);
// Copy current directory
Un proyecto texto-plano.xyz