The following patch seems to fix it for me. I may as well do a new upstream release as well as the bug fix, so it will take a bit longer.
diff --git a/lib/name.c b/lib/name.c index 94a225c..e1dec3a 100644 --- a/lib/name.c +++ b/lib/name.c @@ -185,6 +185,7 @@ name_comma( char *p, newstr *outname ) /** Last name **/ start_last = skip_ws( p ); + end_last = string_end(p); while ( *p && ( *p!=',' ) ) { newstr_addchar( outname, *p++ ); end_last = p;
test.xml
Description: Binary data