Johannes Sixt <j6t@xxxxxxxx> writes: >> Because len_domain includes the terminating NUL for the domain part, >> (*str)[len_domain-1] is that NUL, no? And that is what you want to >> overwrite to make the two strings <d> <NUL> <u> <NUL> into a single >> one <d> <slash> <u> <NUL>. So... > > But after a successful call, len_domain and len_user have been modified > to contain the lengths of the names (not counting the NULs), ... Ah, that is what I missed. Thanks.