diff --git a/rpmfile/headers.py b/rpmfile/headers.py index a10ac98..6599bfc 100644 --- a/rpmfile/headers.py +++ b/rpmfile/headers.py @@ -312,6 +312,8 @@ def extract_string(offset, count, store): + if count > 1: + return extract_array(offset, count, store) assert count == 1 idx = store[offset:].index(b"\x00") return store[offset : offset + idx]