From: Junio C Hamano Date: Wed, 19 Apr 2017 02:48:56 GMT Subject: Re: [PATCH v3 2/2] xgethostname: handle long hostnames Message-ID: In-Reply-To: <20170418215743.18406-3-dturner@twosigma.com> David Turner writes: > If the full hostname doesn't fit in the buffer supplied to > gethostname, POSIX does not specify whether the buffer will be > null-terminated, so to be safe, we should do it ourselves. Introduce The name of the character whose ASCII value is '\0' is NUL, not null (similarly for in-code comment).