From 0a2c4d20fe49c504b5bbb383afc97db340814bba Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 18 Aug 2014 12:27:22 +0200 Subject: Retain comments in descriptions and config values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comments should only be stripped if they start at the beginning of a line. We do not want to chop off an TODO item description or a configuration value. Reported-by: HÃ¥kan Jerning Signed-off-by: Lukas Fleischer --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index dca23d1..8d1d886 100644 --- a/src/io.c +++ b/src/io.c @@ -274,7 +274,7 @@ void io_extract_data(char *dst_data, const char *org, int len) for (; *org == ' ' || *org == '\t'; org++) ; for (i = 0; i < len - 1; i++) { - if (*org == '\n' || *org == '\0' || *org == '#') + if (*org == '\n' || *org == '\0') break; *dst_data++ = *org++; } -- cgit v1.2.3-54-g00ecf