From 52c6c8242192ebc5b8751ea4b9c653f1b9fa7beb Mon Sep 17 00:00:00 2001 From: Rumble Date: Thu, 2 Jan 2014 18:12:10 -0500 Subject: [PATCH] Update genwld.c Fixed a parsing bug in the text-editor where an errant %s could cause a crash. (thanks Kyle) --- src/genwld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/genwld.c b/src/genwld.c index accb892..295a6fb 100644 --- a/src/genwld.c +++ b/src/genwld.c @@ -313,8 +313,8 @@ int save_rooms(zone_rnum rzone) room->room_flags[3], room->sector_type ); - fprintf(sf, convert_from_tabs(buf2), 0); - + fprintf(sf, "%s", convert_from_tabs(buf2)); + /* Now you write out the exits for the room. */ for (j = 0; j < DIR_COUNT; j++) { if (R_EXIT(room, j)) {