pdfgen: Avoid using strcpy
pdfgen: Avoid using strcpy

We might use clang-tidy at some point, and strcpy is considered
unsafe. Use snprintf to avoid overruns

AndreRenaud/PDFGen,AndreRenaud/PDFGen,AndreRenaud/PDFGen