From 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:48 -0500 Subject: Second Life viewer sources 1.13.2.15 --- linden/indra/win_crash_logger/win_crash_logger.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'linden/indra/win_crash_logger') diff --git a/linden/indra/win_crash_logger/win_crash_logger.cpp b/linden/indra/win_crash_logger/win_crash_logger.cpp index 3aa41d0..effe56c 100644 --- a/linden/indra/win_crash_logger/win_crash_logger.cpp +++ b/linden/indra/win_crash_logger/win_crash_logger.cpp @@ -496,6 +496,7 @@ void send_crash_report() db_filep = new LLFileEncoder("DB", db_file_name.c_str()); // Get the filename of the SecondLife.log file + // *NOTE: This buffer size is hard coded into scanf() below. char tmp_sl_name[256]; tmp_sl_name[0] = '\0'; @@ -506,7 +507,10 @@ void send_crash_report() // Look for it in the debug_info.log file if (db_filep->isValid()) { - sscanf((const char *)db_filep->mBuf, "SL Log: %[^\r\n]", tmp_sl_name); + sscanf( + (const char*)db_filep->mBuf, + "SL Log: %255[^\r\n]", + tmp_sl_name); } else { -- cgit v1.1