Merge pull request #1489 from teknoraver/master

doimage: get rid of non null terminated strings by strncpy