aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lluploaddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lluploaddialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/newview/lluploaddialog.cpp b/linden/indra/newview/lluploaddialog.cpp
index a67aa7d..620133e 100644
--- a/linden/indra/newview/lluploaddialog.cpp
+++ b/linden/indra/newview/lluploaddialog.cpp
@@ -102,8 +102,13 @@ void LLUploadDialog::setMessage( const std::string& msg)
102 char* temp_msg = new char[size]; 102 char* temp_msg = new char[size];
103 103
104 //strcpy(temp_msg,"Uploading...\n\n"); 104 //strcpy(temp_msg,"Uploading...\n\n");
105 strcpy( temp_msg, msg.c_str()); 105 if (temp_msg == NULL)
106 {
107 llerrs << "Memory Allocation Failed" << llendl;
108 return;
109 }
106 110
111 strcpy( temp_msg, msg.c_str()); /* Flawfinder: ignore */
107 char* token = strtok( temp_msg, "\n" ); 112 char* token = strtok( temp_msg, "\n" );
108 while( token ) 113 while( token )
109 { 114 {