From 86fdc62325ff37ef0faf36e21a0fa34332287ed5 Mon Sep 17 00:00:00 2001 From: DavisVaughan Date: Thu, 9 Mar 2023 14:51:03 -0500 Subject: [PATCH] Applying the same patch as topepo/Cubist#50 It does not look like we need the patch from topepo/Cubist#49, because that `snprintf()` call doesn't exist in C5.0 (if I am reading the code correctly) --- src/utility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility.c b/src/utility.c index a5645dc..7b5c189 100644 --- a/src/utility.c +++ b/src/utility.c @@ -766,7 +766,7 @@ void CValToStr(ContValue CV, Attribute Att, String DS, size_t DS_size) DayToDate(floor(CV / 1440) + TSBase, DS, DS_size); DS[10] = ' '; Mins = rint(CV) - floor(CV / 1440) * 1440; - SecsToTime(Mins * 60, DS + 11, DS_size); + SecsToTime(Mins * 60, DS + 11, DS_size - 11); } else if (DateVal(Att)) { DayToDate(CV, DS, DS_size); } else if (TimeVal(Att)) {