From a83a95e285273ee2cb8ab3cec810fbfbc435354d Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 7 Mar 2026 23:06:46 +0100 Subject: hms: usage of maxxes utils --- FICS/utils.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'FICS') diff --git a/FICS/utils.c b/FICS/utils.c index 856a1bf..2399a03 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -58,6 +58,7 @@ #include "config.h" #include "ficsmain.h" +#include "maxxes-utils.h" #include "network.h" #include "playerdb.h" #include "rmalloc.h" @@ -807,18 +808,18 @@ hms(int t, int showhour, int showseconds, int spaces) if (h || showhour) { if (spaces) - snprintf(tstr, sizeof tstr, "%d : %02d", h, m); + msnprintf(tstr, sizeof tstr, "%d : %02d", h, m); else - snprintf(tstr, sizeof tstr, "%d:%02d", h, m); + msnprintf(tstr, sizeof tstr, "%d:%02d", h, m); } else { - snprintf(tstr, sizeof tstr, "%d", m); + msnprintf(tstr, sizeof tstr, "%d", m); } if (showseconds) { if (spaces) - snprintf(tmp, sizeof tmp, " : %02d", s); + msnprintf(tmp, sizeof tmp, " : %02d", s); else - snprintf(tmp, sizeof tmp, ":%02d", s); - strlcat(tstr, tmp, sizeof tstr); + msnprintf(tmp, sizeof tmp, ":%02d", s); + mstrlcat(tstr, tmp, sizeof tstr); } return tstr; } -- cgit v1.2.3