You have too many global variables for me to guess accurately what the problem is, but my first suggestion would be to make sure that your strings are terminated with a null character ('\0').
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004