Commit 57fcdcca authored by Robert Griesemer's avatar Robert Griesemer

fixed bug in FixExt routine

R=r
OCL=13695
CL=13695
parent 9761a6d0
......@@ -22,7 +22,7 @@ func BaseName(s string) string {
export FixExt
func FixExt(s string) string {
i := len(s) - 3; // 3 == len(".go");
if s[i : len(s)] == ".go" {
if i >= 0 && s[i : len(s)] == ".go" {
s = s[0 : i];
}
return s + ".7";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment