Re: [PATCH v7 1/1] mingw: give more details about unsafe directory's ownership
From: Junio C Hamano <hidden>
Date: 2024-01-09 22:34:43
From: Junio C Hamano <hidden>
Date: 2024-01-09 22:34:43
Johannes Sixt [off-list ref] writes:
quoted
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.