Skip to content

Commit 79ec4fc

Browse files
committed
fix header length
1 parent b56ef01 commit 79ec4fc

File tree

1 file changed

+3
-3
lines changed
  • package/MDAnalysis/lib/formats/include

1 file changed

+3
-3
lines changed

package/MDAnalysis/lib/formats/include/readdcd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,10 +736,10 @@ int write_dcdheader(fio_fd fd, const char *remarks, int N,
736736
}
737737
fio_write_int32(fd, 84);
738738
fio_write_int32(fd, 164);
739-
fio_write_int32(fd, 3); /* the number of 80 character title strings */
739+
fio_write_int32(fd, 2); /* the number of 80 character title strings */
740740

741-
strncpy(title_string, remarks, 240);
742-
WRITE(fd, title_string, 240);
741+
strncpy(title_string, remarks, 160);
742+
WRITE(fd, title_string, 160);
743743

744744
fio_write_int32(fd, 164);
745745
fio_write_int32(fd, 4);

0 commit comments

Comments
 (0)