Calculate prefix_len before use. Duh.
Fixed not rewinding va_list in parser