fix string copying error
Merge pull request #20 from medvid/master

fix string copying error