common/util.c, server/admin.c: Ensure null-termination of result strings.
[tripe] / server / admin.c
index 3257c7d..06922db 100644 (file)
@@ -311,6 +311,7 @@ void a_vformat(dstr *d, const char *fmt, va_list *ap)
     }
     fmt = va_arg(*ap, const char *);
   }
+  dstr_putz(d);
 
   dstr_destroy(&dd);
 }