diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-17 16:48:04 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-17 16:48:04 +0000 |
commit | a7713388a0ed188a380c51ed3901c8f42cbbce8d (patch) | |
tree | 0917748912e789754fdc5d473a96f7df35ca76ce /src/map/irc.c | |
parent | a9aaf01f53a4551abb18d23931ac76aeddda1841 (diff) | |
download | hercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.tar.gz hercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.tar.bz2 hercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.tar.xz hercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.zip |
* Fixed potential crash in IRC processing message with '%' using *printf.
* Fixed memory leaking caused by homun_data not freed when removed.
* Minor adjustments to sign/unsign in script commands.
modified Changelog-Trunk.txt
modified src/map/irc.c
modified src/map/script.c
modified src/map/unit.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9245 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/irc.c')
-rw-r--r-- | src/map/irc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/irc.c b/src/map/irc.c index 46d1c3b95..498467ae7 100644 --- a/src/map/irc.c +++ b/src/map/irc.c @@ -63,9 +63,10 @@ int irc_connect_timer(int tid, unsigned int tick, int id, int data) void irc_announce(char *buf)
{
char send_string[256];
- malloc_tsetdword(send_string,'\0',256);
+ // malloc_tsetdword(send_string,'\0',256); // NOT REQUIRED
- sprintf(send_string,"PRIVMSG %s :%s",irc_channel, buf);
+ sprintf(send_string,"PRIVMSG %s :",irc_channel);
+ strcat(send_string, buf);
irc_send(send_string);
}
|