OSDN Git Service

r356 modification was not correct. Updated.
authortoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Tue, 11 Jun 2013 14:02:01 +0000 (14:02 +0000)
committertoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Tue, 11 Jun 2013 14:02:01 +0000 (14:02 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@357 a2be9bc6-48de-4e38-9406-05402d4bc13c

MolLib/Molecule.c

index 02254d0..bde615e 100755 (executable)
@@ -3100,7 +3100,7 @@ MoleculeLoadGamessDatFile(Molecule *mol, const char *fname, char **errbuf)
                                /*  2013.6.11. Line including "PM3" is also recognized as the end of atom  */
                                while ((status = sReadLineWithInterrupt(buf, sizeof buf, fp, &lineNumber)) > 0) {
                                        for (j = 0; buf[j] == ' '; j++);
-                                       if (buf[j] == '\n' || strncmp(buf, "PM3", 3) == 0)
+                                       if (buf[j] == '\n' || strncmp(buf + j, "PM3", 3) == 0)
                                                break;
                                }
                                i++;