- Used some sizeof() on the stncpy() for security
  purpose.
  
- Deleted the error 128 array length value from 
  strncpy().
  
- Tide up of the rest code.