add space for terminating null to fix AIX memory corruption
Merge pull request #1721 from McAtte/fix-aix-memory-corruption-from-xstrndup

add space for terminating null to fix AIX memory corruption