1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- backends/replace.pl.in.orig Fri Oct 22 02:41:56 2004
+++ backends/replace.pl.in Fri Oct 22 02:42:48 2004
@@ -1113,19 +1113,19 @@
return -1 if (!&gst_replace_interfaces_iface_stanza_locate ($buff, \$line_no, $iface));
- delete $$buff[$line_no];
+ splice @{$buff},$line_no,1;
$line_no ++;
while (&gst_replace_interfaces_get_next_option ($buff, \$line_no) != -1)
{
- delete $$buff[$line_no];
+ splice @{$buff},$line_no,1;
$line_no ++;
}
$line_no = 0;
if (&gst_replace_interfaces_auto_stanza_locate ($buff, \$line_no, $iface))
{
- delete $$buff[$line_no];
+ splice @{$buff},$line_no,1;
}
&gst_file_buffer_clean ($buff);
@@ -1663,7 +1663,7 @@
}
else
{
- delete $$buff[$i];
+ splice @{$buff},$i,1;
}
}
}
|