Hi Gary,
This isn't part of my pdq_gfx_update branch, but you can see the implementation I plan to use here:
The memset is required in my implementation only because I didn't think to manually set the terminator. If I did manually set a null terminator after inserting the "."s, the memset at the start could be skipped.
Reed