~sandy-dunlop/wildcatcobol/dev

« back to all changes in this revision

Viewing changes to src/Wildcat.Cobol.Compiler/ILGenerator/ILGenerator.cs

  • Committer: Sandy Dunlop
  • Date: 2007-10-17 20:13:08 UTC
  • Revision ID: sandy.dunlop@gmail.com-20071017201308-id3wug3026vti7ms
Bug fix for reading of assembly public key strings

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
                                        string pubKeyStr = "";
83
83
                                        int kp = asmName.FullName.LastIndexOf("=");
84
84
                                        string tmp = asmName.FullName.Substring(kp + 1).ToUpper();
85
 
                                        for (int i = 0; i < tmp.Length; i += 2)
 
85
                                        for (int i = 0; i < tmp.Length-1; i += 2)
86
86
                                        {
87
87
                                            pubKeyStr += tmp.Substring(i, 2);
88
88
                                            pubKeyStr += " ";