17 lines
615 B
Text
17 lines
615 B
Text
64-bit time_t
|
|
|
|
Index: lib/saslutil.c
|
|
--- lib/saslutil.c.orig
|
|
+++ lib/saslutil.c
|
|
@@ -280,9 +280,9 @@ int sasl_mkchal(sasl_conn_t *conn,
|
|
time(&now);
|
|
|
|
if (hostflag && conn->serverFQDN)
|
|
- snprintf(buf,maxlen, "<%lu.%lu@%s>", randnum, (unsigned long)now, conn->serverFQDN); /* don't care much about time 32bit overlap */
|
|
+ snprintf(buf,maxlen, "<%lu.%lld@%s>", randnum, now, conn->serverFQDN); /* don't care much about time 32bit overlap */
|
|
else
|
|
- snprintf(buf,maxlen, "<%lu.%lu>", randnum, (unsigned long)now);
|
|
+ snprintf(buf,maxlen, "<%lu.%lld>", randnum, now);
|
|
|
|
return (int) strlen(buf);
|
|
}
|