Skip to content

Commit

Permalink
fix: fix space in amsdos filename when extracting from dsk
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Le Saux committed Dec 30, 2023
1 parent c828248 commit 1f549dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dsk/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ func ToAscii(b []byte) string {
var out string
for _, v := range b {
v &= 127
out += string(v)
if v != 0x20 {
out += string(v)
}
}
return out
return strings.TrimLeft(out, " ")
}

0 comments on commit 1f549dd

Please sign in to comment.