Fix a few problems where NULL or -1 would be returned for EOF instead of the empty string or 0
Fix a few problems where NULL or -1 would be returned for EOF instead of the empty string or 0


git-svn-id: a252750ff815d3a2b96ee03015f3bd885a80a618@7503 94223b32-352b-4d6d-a509-7b239cf53eea

balr0g/libwired-old,balr0g/libwired-old,balr0g/libwired-old