Skip to content

Commit

Permalink
fix: modify twice the same byte in extension string
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Le Saux committed Apr 11, 2024
1 parent 5fc65fc commit fbd8ee7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dsk/dsk.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,10 +831,7 @@ func (d *DSK) CopyFile(bufFile []byte, fileName string, fileLength, maxBloc, use
posDir, err := d.RechercheDirLibre() // Trouve une entree libre dans le CAT
if err == nil {
dirLoc.User = uint8(userNumber) // Remplit l'entree : User 0
if isSystemFile {
dirLoc.Ext[0] |= 0x80
}
if readOnly {
if isSystemFile || readOnly {
dirLoc.Ext[0] |= 0x80
}
dirLoc.NumPage = uint8(nbPages) // Numero de l'entree dans le fichier
Expand Down

0 comments on commit fbd8ee7

Please sign in to comment.