Update genwld.c

Fixed a parsing bug in the text-editor where an errant %s could cause a crash. (thanks Kyle)