made more robust with partial output.

This commit is contained in:
beard%netscape.com 1999-10-31 06:05:09 +00:00
Родитель 8138489642
Коммит f5308be67e
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -355,8 +355,10 @@ public class leaksoup {
int leftBracket = line.indexOf('['); int leftBracket = line.indexOf('[');
if (leftBracket == -1) if (leftBracket == -1)
return line; return line;
int comma = line.indexOf(',', leftBracket + 1);
int rightBracket = line.indexOf(']', leftBracket + 1); int rightBracket = line.indexOf(']', leftBracket + 1);
if (rightBracket == -1)
return line;
int comma = line.indexOf(',', leftBracket + 1);
String macPath = line.substring(leftBracket + 1, comma); String macPath = line.substring(leftBracket + 1, comma);
String path = macPath.replace(':', '/'); String path = macPath.replace(':', '/');

Просмотреть файл

@ -128,8 +128,10 @@ public class tracesoup {
int leftBracket = line.indexOf('['); int leftBracket = line.indexOf('[');
if (leftBracket == -1) if (leftBracket == -1)
return line; return line;
int comma = line.indexOf(',', leftBracket + 1);
int rightBracket = line.indexOf(']', leftBracket + 1); int rightBracket = line.indexOf(']', leftBracket + 1);
if (rightBracket == -1)
return line;
int comma = line.indexOf(',', leftBracket + 1);
String macPath = line.substring(leftBracket + 1, comma); String macPath = line.substring(leftBracket + 1, comma);
String path = macPath.replace(':', '/'); String path = macPath.replace(':', '/');