summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-20 19:42:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-20 19:42:54 +0000
commit71dd293413d357f54869f87cb26455e6d07258bd (patch)
tree3c2dc6eb85650649aeb1d4ab2b5328bdea1983f7 /src
parent68636ea0d5961e74b2796d60a0a84064f735d8ca (diff)
downloadhercules-71dd293413d357f54869f87cb26455e6d07258bd.tar.gz
hercules-71dd293413d357f54869f87cb26455e6d07258bd.tar.bz2
hercules-71dd293413d357f54869f87cb26455e6d07258bd.tar.xz
hercules-71dd293413d357f54869f87cb26455e6d07258bd.zip
- Raised the buffer size in clif_MainChatMessage to 200, removed the message length in atcommand_main.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6197 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c3
-rw-r--r--src/map/clif.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index b10d4b6c1..e0b066d66 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -10110,9 +10110,6 @@ int atcommand_main(
{
if(strlen(message) > 0) {
- if(strlen(message) > 128)
- return -1;
-
if(strcmpi(message, "on") == 0) {
if(!sd->state.mainchat) {
sd->state.mainchat = 1;
diff --git a/src/map/clif.c b/src/map/clif.c
index 0a73e03f4..6e01d7fed 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4802,7 +4802,7 @@ void clif_GlobalMessage(struct block_list *bl,char *message)
*/
void clif_MainChatMessage(char* message) {
- char buf[128];
+ char buf[200];
int len;
if(!message)