1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 13:56:39 +02:00

Abolish the few remaining uses of BUFSIZE.

This commit is contained in:
Sadie Powell
2026-03-23 02:14:51 +00:00
parent d3395a5d39
commit e002f39509
7 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -754,7 +754,7 @@ bool File::End() const
Anope::string File::Read()
{
Anope::string ret;
char buf[BUFSIZE];
char buf[1024];
while (fgets(buf, sizeof(buf), this->fp) != NULL)
{
char *nl = strchr(buf, '\n');
+1 -1
View File
@@ -685,7 +685,7 @@ Anope::string Anope::strftime(time_t t, const NickCore *nc, bool short_output)
tzset();
}
char buf[BUFSIZE];
char buf[256];
strftime(buf, sizeof(buf), "%c", (nc ? localtime(&t) : gmtime(&t)));
if (nc)