diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 23:06:46 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 23:06:46 +0100 |
| commit | a83a95e285273ee2cb8ab3cec810fbfbc435354d (patch) | |
| tree | e41823addb57dc382cb100384870c837960d1148 /FICS/utils.c | |
| parent | e6bcc2d8a8deac6892a87ea749582ff16559ad6c (diff) | |
hms: usage of maxxes utils
Diffstat (limited to 'FICS/utils.c')
| -rw-r--r-- | FICS/utils.c | 13 |
1 files changed, 7 insertions, 6 deletions
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; } |
