diff options
author | Steven Bennetts <steve@lindenlab.com> | 2007-01-24 20:21:23 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2007-01-24 20:21:23 +0000 |
commit | ad94bca0d273869d6358719f4dbd515a905acd26 (patch) | |
tree | 52ae9f056f3dd6a938434d45d5295aef87e77e0a /indra/mac_crash_logger | |
parent | 787ac69d75dbbd8ad79c32a5de54603351523eae (diff) |
merge -r 56696:57082 Branch_1-13-2
Diffstat (limited to 'indra/mac_crash_logger')
-rw-r--r-- | indra/mac_crash_logger/mac_crash_logger.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/indra/mac_crash_logger/mac_crash_logger.cpp b/indra/mac_crash_logger/mac_crash_logger.cpp index 5e6d9ba2f0..abf8c4f038 100644 --- a/indra/mac_crash_logger/mac_crash_logger.cpp +++ b/indra/mac_crash_logger/mac_crash_logger.cpp @@ -311,9 +311,13 @@ int main(int argc, char **argv) db_filep = new LLFileEncoder("DB", db_file_name.c_str()); // Get the filename of the SecondLife.log file - char tmp_sl_name[MAX_PATH]; + + // *NOTE: changing the size of either of these buffers will + // require changing the sscanf() format string to correctly + // account for it. + char tmp_sl_name[LL_MAX_PATH]; tmp_sl_name[0] = '\0'; - char tmp_space[256]; + char tmp_space[MAX_STRING]; tmp_space[0] = '\0'; // Look for it in the debug_info.log file @@ -321,7 +325,11 @@ int main(int argc, char **argv) { // This was originally scanning for "SL Log: %[^\r\n]", which happily skipped to the next line // on debug logs (which don't have anything after "SL Log:" and tried to open a nonsensical filename. - sscanf(db_filep->mBuf.c_str(), "SL Log:%[ ]%[^\r\n]", tmp_space, tmp_sl_name); + sscanf( + db_filep->mBuf.c_str(), + "SL Log:%254[ ]%1023[^\r\n]", + tmp_space, + tmp_sl_name); } else { |