summaryrefslogtreecommitdiff
path: root/botserv.c
diff options
context:
space:
mode:
authoratoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b <atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-04 22:47:03 +0000
committeratoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b <atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-04 22:47:03 +0000
commit2bf5802671a9d49c86daf11ed7dc6ae8a0f078af (patch)
treec2d8b182ea0543bdcadf84c6b1be4855160605be /botserv.c
parenta63e254bd4d0dccd9fae699b5e5aafce1a85518d (diff)
BUILD : 1.7.2 (85) BUGS : NOTES : Made normalizeBuffer string size equal to BUFSIZE (1024). Fixed function comments to be doxygen friendly :)
git-svn-id: svn://svn.anope.org/anope/trunk@85 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@61 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'botserv.c')
-rw-r--r--botserv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/botserv.c b/botserv.c
index 3aac7ce84..c4c96fdff 100644
--- a/botserv.c
+++ b/botserv.c
@@ -2522,13 +2522,15 @@ static int do_act(User * u)
/*************************************************************************/
/**
* Normalize buffer stripping control characters and colors
+ * @param A string to be parsed for control and color codes
+ * @return A string stripped of control and color codes
*/
char *normalizeBuffer(char *buf)
{
char *newbuf;
int i, len, j = 0;
- newbuf = (char *) malloc(255);
+ newbuf = (char *) malloc(BUFSIZE);
len = strlen(buf);