From c2857fb8b7903b2bba9217310971e5282549174d Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 5 Dec 2011 17:29:15 -0500 Subject: [PATCH] stripspace: fix outdated comment The comment on top of stripspace() claims that the buffer will no longer be NUL-terminated. However, this has not been the case at least since the move to using strbuf in 2007. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- builtin/stripspace.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/builtin/stripspace.c b/builtin/stripspace.c index 4d3b93fed..1288ffcc5 100644 --- a/builtin/stripspace.c +++ b/builtin/stripspace.c @@ -22,8 +22,6 @@ static size_t cleanup(char *line, size_t len) * Remove empty lines from the beginning and end * and also trailing spaces from every line. * - * Note that the buffer will not be NUL-terminated. - * * Turn multiple consecutive empty lines between paragraphs * into just one empty line. * -- 2.30.2