Skip to content

Commit

Permalink
Merge pull request #90 from skx/89-submit
Browse files Browse the repository at this point in the history
Fixed submit to work for > 2 commands
  • Loading branch information
skx authored May 23, 2024
2 parents 55bfbf6 + d66eb0a commit e45ea68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpm/cpm_bdos.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func SysCallFileClose(cpm *CPM) error {

if hostExtent == seqEXT {
if int(fcbPtr.RC) < seqCR(hostSize) {
hostSize = int64(16384*seqEXT + int(128*fcbPtr.RC))
hostSize = int64(16384*seqEXT + int(128*int(fcbPtr.RC)))
err := obj.handle.Truncate(hostSize)
if err != nil {
return fmt.Errorf("error truncating file %s: %s", obj.name, err)
Expand Down

0 comments on commit e45ea68

Please sign in to comment.