[gnome-mud] Fix crash due to swapped memcpy args in CHARSET negotiation handling
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mud] Fix crash due to swapped memcpy args in CHARSET negotiation handling
- Date: Thu, 3 Jun 2010 06:02:30 +0000 (UTC)
commit 4892aa04fc23242a002c0a7a21a927ae36b01bb5
Author: Denis Kasak <denis kasak gmail com>
Date: Thu Jun 3 08:57:59 2010 +0300
Fix crash due to swapped memcpy args in CHARSET negotiation handling
Fixes bug #611239.
src/handlers/mud-telnet-charset.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/handlers/mud-telnet-charset.c b/src/handlers/mud-telnet-charset.c
index 24c4db7..e8fcd63 100644
--- a/src/handlers/mud-telnet-charset.c
+++ b/src/handlers/mud-telnet-charset.c
@@ -286,7 +286,7 @@ mud_telnet_charset_handle_sub_neg(MudTelnetHandler *handler,
case TEL_CHARSET_REQUEST:
// Check for [TTABLE] and
// reject if found.
- memcpy(&buf[1], tbuf, 8);
+ memcpy(tbuf, &buf[1], 8);
tbuf[8] = '\0';
if(strcmp((gchar *)tbuf, "[TTABLE]") == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]