From 2d95c9a756c4c7b9301e04c274c3b139e0d1aef4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 10 Jan 2008 23:22:46 +0000 Subject: Loads of NetBSD tweaks here. --- src/libeinfo/libeinfo.c | 1 + src/librc/librc-misc.c | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c index 8dfe13f2..bebb3ef3 100644 --- a/src/libeinfo/libeinfo.c +++ b/src/libeinfo/libeinfo.c @@ -177,6 +177,7 @@ static const char *const color_terms[] = { "screen-w", "screen.linux", "vt100", + "vt220", "xterm", "xterm-256color", "xterm-color", diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c index 4a16e9fe..08f5e4e4 100644 --- a/src/librc/librc-misc.c +++ b/src/librc/librc-misc.c @@ -151,11 +151,14 @@ char **rc_config_list (const char *file) /* Get entry - we do not want comments */ token = strsep (&p, "#"); if (token && (strlen (token) > 1)) { - /* Stip the newline if present */ - if (token[strlen (token) - 1] == '\n') - token[strlen (token) - 1] = 0; + /* If not variable assignment then skip */ + if (strchr (token, '=')) { + /* Stip the newline if present */ + if (token[strlen (token) - 1] == '\n') + token[strlen (token) - 1] = 0; - rc_strlist_add (&list, token); + rc_strlist_add (&list, token); + } } free (buffer); } -- cgit v1.2.3