REF: use std::string instead of char[]

git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4842 42a5c34f-2066-0410-bec5-ba365beb4995
FIX: safer loop bound

git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4843 42a5c34f-2066-0410-bec5-ba365beb4995
FIX: memory leak

git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4844 42a5c34f-2066-0410-bec5-ba365beb4995
FIX: uninitialized scalar

git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4845 42a5c34f-2066-0410-bec5-ba365beb4995
FIX: uninitialized scalar

git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4846 42a5c34f-2066-0410-bec5-ba365beb4995
FIX: uninitialized scalars

git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@4847 42a5c34f-2066-0410-bec5-ba365beb4995