1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

In usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use the

corresponding printf length modifier.

Requested by:	mdf
MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-17 22:20:46 +00:00
parent 547b155eb1
commit be120ddea0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228667

View File

@ -302,8 +302,8 @@ auth_makechallenge(struct config *config, char *challenge)
}
gettimeofday(&tv, NULL);
MD5_Init(&md5);
snprintf(buf, sizeof(buf), "%s:%lld:%ld:%ld:%d:%d",
inet_ntoa(laddr.sin_addr), (long long)tv.tv_sec, tv.tv_usec,
snprintf(buf, sizeof(buf), "%s:%jd:%ld:%ld:%d:%d",
inet_ntoa(laddr.sin_addr), (intmax_t)tv.tv_sec, tv.tv_usec,
random(), pid, ppid);
MD5_Update(&md5, buf, strlen(buf));
MD5_Final(md5sum, &md5);