Skip to content

Commit dc330c5

Browse files
committed
Add two missing alignment constants
1 parent 23bdf7a commit dc330c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/io/sas/sas7bdat.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,13 @@ def _get_properties(self):
183183
const.os_version_number_length)
184184
self.os_version = buf.rstrip(b'\x00 ').decode()
185185

186-
buf = self._read_bytes(const.os_name_offset, const.os_name_length)
186+
buf = self._read_bytes(const.os_name_offset + total_align,
187+
const.os_name_length)
187188
buf = buf.rstrip(b'\x00 ')
188189
if len(buf) > 0:
189190
self.os_name = buf.decode()
190191
else:
191-
buf = self._read_bytes(const.os_maker_offset,
192+
buf = self._read_bytes(const.os_maker_offset + total_align,
192193
const.os_maker_length)
193194
self.os_name = buf.rstrip(b'\x00 ').decode()
194195

0 commit comments

Comments
 (0)