Now, that's not a proper solution (should check the data length is long enough), but hopefully it helps identify the issue of why sz isn't getting set properly. (And sorry for the comment spam, as edit would be nice.)
Now, that's not a proper solution (should check the data length is long enough), but hopefully it helps identify the issue of why sz isn't getting set properly. (And sorry for the comment spam, as edit would be nice.)