From 033dfdc504d6e04c8865930e80be7a763880cbea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Covach=C3=A3?= Date: Mon, 10 Jun 2002 23:53:32 +0000 Subject: [PATCH] Fixed buffer overflow. (commented the printing of the ini file contents) --- reaction/game/g_main.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/reaction/game/g_main.c b/reaction/game/g_main.c index 8612f4a0..e4e6a8cf 100644 --- a/reaction/game/g_main.c +++ b/reaction/game/g_main.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.71 2002/06/10 23:53:32 assimon +// Fixed buffer overflow. (commented the printing of the ini file contents) +// // Revision 1.70 2002/06/10 19:10:59 jbravo // Voting system fixed for TP // @@ -2544,7 +2547,7 @@ void RQ3_ReadInitFile() { buf = G_Alloc (len); trap_FS_Read (buf, len, file); - G_Printf ("RQ3 config system: Ini File contains: %s\n", buf); + // G_Printf ("RQ3 config system: Ini File contains: %s\n", buf); trap_FS_FCloseFile (file); RQ3_ParseBuffer (buf, len); @@ -2695,14 +2698,14 @@ int RQ3_ParseBlock (int tag_type, char *tag, int *cur_pos, char *buf, int len) { if (RQ3_GetTag (buf, cur_pos, tag, len) == MAP ) { G_Printf ("RQ3 config system: Prossessing block \n"); // Process the map block here - G_Printf ("RQ3 config system: g_RQ3_NextMapID is: %d and map_number is: %d \n", g_RQ3_NextMapID.integer, map_number); + // G_Printf ("RQ3 config system: g_RQ3_NextMapID is: %d and map_number is: %d \n", g_RQ3_NextMapID.integer, map_number); if (RQ3_GetWord (buf, cur_pos, word_buff, len) == TOKEN_TAG) if (RQ3_CheckClosingTag (buf, cur_pos, MAP, len) == PARSING_OK) { map_number++; - G_Printf ("RQ3 config system: current map number is %d.\n", map_number); // ver esta merda + // G_Printf ("RQ3 config system: current map number is %d.\n", map_number); // ver esta merda } else return PARSING_ERROR; else @@ -2717,7 +2720,7 @@ int RQ3_ParseBlock (int tag_type, char *tag, int *cur_pos, char *buf, int len) { if (RQ3_CheckClosingTag (buf, cur_pos, MAP, len) == PARSING_OK) { map_number++; - G_Printf ("RQ3 config system: current map count is %d.\n", map_number); + // G_Printf ("RQ3 config system: current map count is %d.\n", map_number); } else return PARSING_ERROR; } else {