replace sizeof(buf) by BUF_LEN

This commit is contained in:
Andreas Steffen
2007-09-18 22:10:52 +00:00
parent 230702901f
commit e0b3a60578
+1 -1
View File
@@ -331,7 +331,7 @@ chunk_t timetoasn1(const time_t *time, asn1_t type)
format = "%02d%02d%02d%02d%02d%02dZ";
offset = (t->tm_year < 100)? 0 : -100;
}
snprintf(buf, sizeof(buf), format, t->tm_year + offset,
snprintf(buf, BUF_LEN, format, t->tm_year + offset,
t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec);
formatted_time.ptr = buf;
formatted_time.len = strlen(buf);