mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-0 Corrected ip.gradle bug
This commit is contained in:
parent
d201b939d2
commit
e1a9465f8c
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -233,7 +233,7 @@ def getIpForSourceFile(File file, String prefix) {
|
||||||
file.withReader { reader ->
|
file.withReader { reader ->
|
||||||
while(++lineNum < 5 && (line = reader.readLine()) != null) {
|
while(++lineNum < 5 && (line = reader.readLine()) != null) {
|
||||||
if (line.startsWith(prefix)) {
|
if (line.startsWith(prefix)) {
|
||||||
ip = line.substring(7).trim();
|
ip = line.substring(prefix.length()).trim();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue