optados-developers / optados

Official Repository of the Optados code
http://www.optados.org
21 stars 22 forks source link

Crashes with seedname longer than 50 chars #33

Closed ml-evs closed 3 years ago

ml-evs commented 4 years ago

I've just run into a problem where a 51 char seedname caused a crash (with an error about being unable to find the seed file, not wasn't easy to notice with only 1 char missing!)

I'll make a quick PR fixing this, ~CASTEP uses character(len=*) so I'll follow that.~ (not appropriate as bug is upon first reading of seed from cmd line) making this a "reasonably big number" (I used 512 for the PDOS filename in 9e8b45e118149c39e6d96b6250efe7df97d2a92f)