1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-16 13:35:22 +02:00

Trim the line before parsing.

This commit is contained in:
Alain Magloire 2002-10-15 18:13:20 +00:00
parent ffbaedf13d
commit 251fa2d9e3

View file

@ -43,7 +43,8 @@ public class ProcessList implements IProcessList {
while ((lastline = psOutput.readLine()) != null) {
//The format of the output should be
//PID space name
lastline = lastline.trim();
int index = lastline.indexOf(' ');
if (index != -1) {
String pidString = lastline.substring(0, index).trim();