mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Abolish the few remaining uses of BUFSIZE.
This commit is contained in:
@@ -39,7 +39,7 @@ public:
|
||||
int err = regcomp(&this->regbuf, expr.c_str(), REG_EXTENDED | REG_NOSUB | REG_ICASE);
|
||||
if (err)
|
||||
{
|
||||
char buf[BUFSIZE];
|
||||
char buf[256];
|
||||
regerror(err, &this->regbuf, buf, sizeof(buf));
|
||||
regfree(&this->regbuf);
|
||||
throw RegexException("Error in regex " + expr + ": " + buf);
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
int err = regcomp(&this->regbuf, expr.c_str(), REG_EXTENDED | REG_NOSUB);
|
||||
if (err)
|
||||
{
|
||||
char buf[BUFSIZE];
|
||||
char buf[256];
|
||||
regerror(err, &this->regbuf, buf, sizeof(buf));
|
||||
regfree(&this->regbuf);
|
||||
throw RegexException("Error in regex " + expr + ": " + buf);
|
||||
|
||||
Reference in New Issue
Block a user