mirror of
https://github.com/anope/anope.git
synced 2026-07-04 08:43:14 +02:00
Abolish the few remaining uses of BUFSIZE.
This commit is contained in:
@@ -39,7 +39,7 @@ bool StaticFileServer::OnRequest(HTTP::Provider *server, const Anope::string &pa
|
||||
reply.headers["Cache-Control"] = "public";
|
||||
|
||||
int i;
|
||||
char buffer[BUFSIZE];
|
||||
char buffer[1024];
|
||||
while ((i = read(fd, buffer, sizeof(buffer))) > 0)
|
||||
reply.Write(buffer, i);
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ void TemplateFileServer::Serve(HTTP::Provider *server, const Anope::string &page
|
||||
Anope::string buf;
|
||||
|
||||
int i;
|
||||
char buffer[BUFSIZE];
|
||||
char buffer[1024];
|
||||
while ((i = read(fd, buffer, sizeof(buffer) - 1)) > 0)
|
||||
{
|
||||
buffer[i] = 0;
|
||||
|
||||
Reference in New Issue
Block a user