From: Martin Mares Date: Tue, 25 Apr 2006 21:46:56 +0000 (+0200) Subject: Don't end error messages with a comma. X-Git-Tag: holmes-import~645^2~11^2~40 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b7dad1a31b34259d57ffbb7cb48fc1b9d1927321;p=libucw.git Don't end error messages with a comma. --- 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; }