rpza: Fix a buffer size check