From b7dad1a31b34259d57ffbb7cb48fc1b9d1927321 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 25 Apr 2006 23:46:56 +0200 Subject: [PATCH] Don't end error messages with a comma. --- lib/conf2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/conf2.c b/lib/conf2.c index 6da13950..1d58de0e 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -607,6 +607,8 @@ cf_parse_lookup(byte *str, int *ptr, char **t) c += sprintf(err, "Invalid value %s, possible values are: ", str); for (n=t; *n; n++) c+= sprintf(c, "%s, ", *n); + if (*t) + c[-2] = 0; *ptr = -1; return err; } -- 2.39.2