From 3d7edc6d3c62e09c7e452e4cfddb439e7b757694 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 14 Jan 2020 09:01:29 +0100 Subject: [PATCH] q3map: magic string, know about the asctime's trailing \n --- tools/quake3/q3map2/bspfile_ibsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/quake3/q3map2/bspfile_ibsp.c b/tools/quake3/q3map2/bspfile_ibsp.c index 2a719aab..f610abc8 100644 --- a/tools/quake3/q3map2/bspfile_ibsp.c +++ b/tools/quake3/q3map2/bspfile_ibsp.c @@ -550,6 +550,8 @@ void WriteIBSPFile( const char *filename ){ /* add marker lump */ time( &t ); + + /* asctime adds an implicit trailing \n */ sprintf( marker, "I LOVE MY Q3MAP2 %s on %s", Q3MAP_VERSION, asctime( localtime( &t ) ) ); AddLump( file, (bspHeader_t*) header, 0, marker, strlen( marker ) + 1 ); -- 2.39.2