summaryrefslogtreecommitdiff
blob: 1f2afd84e4ba43c4fd0afba1c994c2a7b374ace6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;