*** molecule.c 2004/05/07 19:46:16 1.1 --- molecule.c 2004/07/04 20:42:44 *************** *** 938,946 **** int SimpleAtomType( char *type ) { ! char name[4]; name[2] = name[3] = ' '; if( type[1] && (type[1]!=' ') ) { name[0] = ToUpper(type[0]); name[1] = ToUpper(type[1]); --- 938,947 ---- int SimpleAtomType( char *type ) { ! char name[5]; name[2] = name[3] = ' '; + name[4] = '\0'; if( type[1] && (type[1]!=' ') ) { name[0] = ToUpper(type[0]); name[1] = ToUpper(type[1]); *************** *** 954,960 **** int ComplexAtomType( char *ptr ) { ! static char name[4]; register int i; if( isdigit(ptr[1]) ) --- 955,961 ---- int ComplexAtomType( char *ptr ) { ! static char name[5]; register int i; if( isdigit(ptr[1]) ) *************** *** 991,996 **** --- 992,998 ---- return( 9 ); } } + name[4] = '\0'; return NewAtomType(name); }