openpic: avoid buffer overrun on incoming migration