Lines 140-145
Link Here
|
140 |
if (r == NEWLINE) break; |
140 |
if (r == NEWLINE) break; |
141 |
readLineBuffer = append(readLineBuffer, index++, (byte) r); |
141 |
readLineBuffer = append(readLineBuffer, index++, (byte) r); |
142 |
} |
142 |
} |
|
|
143 |
// make sure there isn't a CR at the end of the line |
144 |
if (readLineBuffer[index - 1] == '\r') index--; |
143 |
String result = new String(readLineBuffer, 0, index); |
145 |
String result = new String(readLineBuffer, 0, index); |
144 |
if (Policy.DEBUG_CVS_PROTOCOL) System.out.println(result); |
146 |
if (Policy.DEBUG_CVS_PROTOCOL) System.out.println(result); |
145 |
return result; |
147 |
return result; |
Lines 157-162
Link Here
|
157 |
break; |
159 |
break; |
158 |
buffer = append(buffer, index++, (byte) r); |
160 |
buffer = append(buffer, index++, (byte) r); |
159 |
} |
161 |
} |
|
|
162 |
if (buffer[index - 1] == '\r') index--; |
160 |
String result = new String(buffer, 0, index); |
163 |
String result = new String(buffer, 0, index); |
161 |
if (Policy.DEBUG_CVS_PROTOCOL) |
164 |
if (Policy.DEBUG_CVS_PROTOCOL) |
162 |
System.out.println(result); |
165 |
System.out.println(result); |