diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-03-04 16:07:24 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-03-04 16:07:24 -0600 |
commit | 1d8fe6519232de705951d34015f97f910b7e82fb (patch) | |
tree | 455541474a2ac3f489c3d846986640f9c101e89a /src/zebra.c | |
parent | 0626bb6cbbfee0e8999b0c17ae1d4e1c814fbead (diff) | |
download | sddm-1d8fe6519232de705951d34015f97f910b7e82fb.tar.gz sddm-1d8fe6519232de705951d34015f97f910b7e82fb.tar.bz2 sddm-1d8fe6519232de705951d34015f97f910b7e82fb.zip |
fix a bug in zebra_read_next_logical_record() when the size is zero
Diffstat (limited to 'src/zebra.c')
-rw-r--r-- | src/zebra.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zebra.c b/src/zebra.c index 24973d7..42b507c 100644 --- a/src/zebra.c +++ b/src/zebra.c @@ -229,7 +229,10 @@ int zebra_read_next_logical_record(zebraFile *z) * length and the LR type; thus a padding record with NWLR=1 occupies * two words. To pad exactly one word, NWLR=0 should be stored, in this * case the LR type 5 is implied without being present in the data." */ - if (size == 0) continue; + if (size == 0) { + z->lr_size = 4; + continue; + } switch (get_bytes(z,offset+1)) { case 1: |