ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/types/AtomType.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/types/AtomType.hpp (file contents):
Revision 1634 by gezelter, Fri Oct 22 21:21:02 2004 UTC vs.
Revision 1637 by chrisfen, Fri Oct 22 22:54:15 2004 UTC

# Line 32 | Line 32 | namespace oopse {
32      void    setIdent(int id) {atp.ident = id;}
33      int     getIdent() {return atp.ident;}
34  
35 <    void    setName(char* n) {strcpy(name, n);}
35 >    void    setName(char* n) {name = strdup(n);}
36      char*   getName() {return name;}
37      
38      void    setLennardJones() { atp.is_LennardJones = 1; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines