about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--settings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index 5ad06f3..3c69c3c 100644
--- a/settings.c
+++ b/settings.c
@@ -1299,6 +1299,10 @@ add_alias(struct settings *s, char *line)
 		show_oops(NULL, "add_alias: incomplete alias definition");
 		goto bad;
 	}
+
+	/* Remove additional leading whitespace */
+	l += (long)strspn(l, " \t");
+
 	if (strlen(alias) == 0 || strlen(l) == 0) {
 		show_oops(NULL, "add_alias: invalid alias definition");
 		goto bad;