We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23bdf7a commit dc330c5Copy full SHA for dc330c5
pandas/io/sas/sas7bdat.py
@@ -183,12 +183,13 @@ def _get_properties(self):
183
const.os_version_number_length)
184
self.os_version = buf.rstrip(b'\x00 ').decode()
185
186
- buf = self._read_bytes(const.os_name_offset, const.os_name_length)
+ buf = self._read_bytes(const.os_name_offset + total_align,
187
+ const.os_name_length)
188
buf = buf.rstrip(b'\x00 ')
189
if len(buf) > 0:
190
self.os_name = buf.decode()
191
else:
- buf = self._read_bytes(const.os_maker_offset,
192
+ buf = self._read_bytes(const.os_maker_offset + total_align,
193
const.os_maker_length)
194
self.os_name = buf.rstrip(b'\x00 ').decode()
195
0 commit comments