From: Arran Cudbard-Bell Date: Mon, 6 Jun 2022 02:40:54 +0000 (-0400) Subject: Set the right output buffer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07901163a18362a7e3475e0cfdccf92e7f39276b;p=thirdparty%2Ffreeradius-server.git Set the right output buffer --- diff --git a/src/lib/util/time.c b/src/lib/util/time.c index 9a90d26e0b0..95af7d1ab46 100644 --- a/src/lib/util/time.c +++ b/src/lib/util/time.c @@ -557,7 +557,8 @@ fr_slen_t fr_time_delta_to_str(fr_sbuff_t *out, fr_time_delta_t delta, fr_time_r } else { q++; /* to account for q-- above */ } - return fr_sbuff_set(&our_out, q); + + return fr_sbuff_set(out, q); } DIAG_OFF(format-nonliteral)