Skip to content

Commit

Permalink
Fixing to use decoder for string conversion for field names.
Browse files Browse the repository at this point in the history
  • Loading branch information
LindsayBradford committed Mar 16, 2022
1 parent f6bb03d commit 3a9e476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godbf/dbfio.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func deriveFieldName(s []byte, dt *DbfTable, offset int) (string, error) {
return "", errors.New(msg)
}

fieldName := dt.encoder.ConvertString(string(nameBytes[:endOfFieldIndex]))
fieldName := dt.decoder.ConvertString(string(nameBytes[:endOfFieldIndex]))
return fieldName, nil
}

Expand Down

0 comments on commit 3a9e476

Please sign in to comment.