From 2cab02be89dd8fb098368dcc93ddf4395998b4fb Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Tue, 15 Nov 2005 13:24:49 +0000 Subject: Patch added to fix compilation issue, closes bug 112354. (Portage version: 2.0.53_rc7) --- kde-base/kopete/files/kopete-3.5.0_rc1-fix.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 kde-base/kopete/files/kopete-3.5.0_rc1-fix.patch (limited to 'kde-base/kopete/files') diff --git a/kde-base/kopete/files/kopete-3.5.0_rc1-fix.patch b/kde-base/kopete/files/kopete-3.5.0_rc1-fix.patch new file mode 100644 index 000000000000..1f2afd84e4ba --- /dev/null +++ b/kde-base/kopete/files/kopete-3.5.0_rc1-fix.patch @@ -0,0 +1,20 @@ +Index: kircmessage.cpp +=================================================================== +--- kopete/protocols/irc/libkirc/kircmessage.cpp (revision 479956) ++++ kopete/protocols/irc/libkirc/kircmessage.cpp (working copy) +@@ -168,11 +168,11 @@ + // + // Some servers send '\n' instead of '\r\n' that the RFCs say they should be sending. + +- if (length > 1 && raw[length-2] == '\n') { +- raw[length-2] = '\0'; ++ if (length > 1 && raw.at(length-2) == '\n') { ++ raw.at(length-2) = '\0'; + } +- if (length > 2 && raw[length-3] == '\r') { +- raw[length-3] = '\0'; ++ if (length > 2 && raw.at(length-3) == '\r') { ++ raw.at(length-3) = '\0'; + } + + kdDebug(14121) << "<< " << raw << endl; -- cgit v1.2.3-65-gdbad