Simplify register_progid() and remove a fixed length buffer.