realloc() from NULL should malloc(), and also added some sanity checks. They may probably trigger some false-positives, but I'd like too see them. git-svn-id: https://dosemu.svn.sourceforge.net/svnroot/dosemu/trunk@1164 7758b857-130e-0410-ab9c-d8735a528d18