diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-10-16 06:26:40 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-10-16 06:26:40 +0000 |
commit | f87f36b82dbf7f907555fed2fdd8efab8f869ea6 (patch) | |
tree | 55558da0c98aef3350b3f45c02b5eccbea2b11c5 /src/map/script.c | |
parent | 1fabc2250529b3ed092c2635c09023d8dd6f74e9 (diff) | |
download | hercules-f87f36b82dbf7f907555fed2fdd8efab8f869ea6.tar.gz hercules-f87f36b82dbf7f907555fed2fdd8efab8f869ea6.tar.bz2 hercules-f87f36b82dbf7f907555fed2fdd8efab8f869ea6.tar.xz hercules-f87f36b82dbf7f907555fed2fdd8efab8f869ea6.zip |
* Fixed public/guild chat message packets sending strings without zero-termination causing recent clients to display trailing junk on such messages (bugreport:5068).
- Changed memcpy to safestrncpy in message packets where overlong messages are truncated (thus loose zero-termination).
- Replaced dynamic allocation in clif_guild_message with buffer from stack.
- Fixed clif_disp_message not checking whether the message fits into provided buffer.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14975 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
0 files changed, 0 insertions, 0 deletions