aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/utils.c13
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;
}