--- chgcar.H.ORG	2015-06-20 08:59:16.000000000 +0900
+++ chgcar.H	2017-09-19 13:43:01.701792728 +0900
@@ -199,6 +199,8 @@
     sscanf(dump, "%lf %lf %lf", latt+i, latt+3+i, latt+6+i);
   }
 
+  fgets(dump, sizeof(dump), infile); /* skip atom name line */
+
   //++ number of atoms
   fgets(dump, sizeof(dump), infile);
   char *strp, *endp=dump;
@@ -249,6 +251,8 @@
   //++ lattice vectors
   for (int i=0; i<3; ++i) fgets(dump, sizeof(dump), infile);
 
+  fgets(dump, sizeof(dump), infile); /* skip atom name line */
+
   //++ number of atoms
   fgets(dump, sizeof(dump), infile);
   char *strp, *endp=dump;
