Oh, and apparently we all forgot to mention it, but you don't have to add the trailing zero to string literals. If you use "double quotes" then it appends a trailing zero automatically. If you use 'single quotes' then it doesn't. Also, I suspect part of the bug you were running into had to do with trying to fit things like "Open\0" (a total of 6 characters) into an array of 4 chars.
KhatharrMember Since 24 Apr 2010
Offline Last Active Private