Fixed off by one error in frame allocation causing lack of null termination.
Should be all complete.