server: Zap spurious space output by a_vformat.
[tripe] / server / admin.c
index 5509de0..4e87e48 100644 (file)
@@ -265,7 +265,7 @@ void a_vformat(dstr *d, const char *fmt, va_list ap)
 
   while (fmt) {
     if (*fmt == '*') {
-      dstr_putc(d, ' ');
+      if (d->len) dstr_putc(d, ' ');
       dstr_vputf(d, fmt + 1, &ap);
     } else if (*fmt == '?') {
       if (strcmp(fmt, "?ADDR") == 0) {