summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 47eae492..7d57e471 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -480,7 +480,7 @@ stampfile(char *fpath, fileheader_t * fh)
#ifdef _BBS_UTIL_C_
do {
#endif
- sprintf(ip, "M.%d.A.%3.3X", (int)++dtime, random() & 0xFFF);
+ sprintf(ip, "M.%d.A.%3.3X", (int)(++dtime), (unsigned int)(random() & 0xFFF));
#ifdef _BBS_UTIL_C_
if (fp == -1 && errno != EEXIST)
return -1;