]> mj.ucw.cz Git - libucw.git/commitdiff
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#dev-config
authorMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2006 21:47:15 +0000 (23:47 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2006 21:47:15 +0000 (23:47 +0200)
lib/conf2.c

index dea5e1119b5d2ec053bc312de31c091c3c86bf27..8eb433d11871499400554925905d906a3162ca6d 100644 (file)
@@ -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;
 }