This is even more important because if you loop it enough times, the strncat ends up overflowing the paperswitch static allocated space and it ends up crashing, my suggestion would be to init paperswith to empty and also check if strlen is 0 on the if, and then doing the strncat of both the switch and the paper name.
Albert -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]