From: Thomas Debesse Date: Tue, 14 Jan 2020 08:01:29 +0000 (+0100) Subject: q3map: magic string, know about the asctime's trailing \n X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d7edc6d3c62e09c7e452e4cfddb439e7b757694;p=xonotic%2Fnetradiant.git q3map: magic string, know about the asctime's trailing \n --- 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 );