aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llnotecard.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llinventory/llnotecard.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llinventory/llnotecard.cpp')
-rw-r--r--linden/indra/llinventory/llnotecard.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/linden/indra/llinventory/llnotecard.cpp b/linden/indra/llinventory/llnotecard.cpp
index 5f48f0e..d40cabb 100644
--- a/linden/indra/llinventory/llnotecard.cpp
+++ b/linden/indra/llinventory/llnotecard.cpp
@@ -26,11 +26,10 @@
26 */ 26 */
27 27
28#include "linden_common.h" 28#include "linden_common.h"
29#include "llinventory.h"
30#include "llnotecard.h" 29#include "llnotecard.h"
31#include "llstreamtools.h" 30#include "llstreamtools.h"
32 31
33LLNotecard::LLNotecard(U32 max_text) 32LLNotecard::LLNotecard(S32 max_text)
34: mMaxText(max_text) 33: mMaxText(max_text)
35{ 34{
36} 35}
@@ -189,7 +188,7 @@ bool LLNotecard::importStream(std::istream& str)
189 return FALSE; 188 return FALSE;
190 } 189 }
191 190
192 char line_buf[STD_STRING_BUF_SIZE]; 191 char line_buf[STD_STRING_BUF_SIZE]; /* Flawfinder: ignore */
193 str.getline(line_buf, STD_STRING_BUF_SIZE); 192 str.getline(line_buf, STD_STRING_BUF_SIZE);
194 if(str.fail()) 193 if(str.fail())
195 { 194 {
@@ -198,7 +197,7 @@ bool LLNotecard::importStream(std::istream& str)
198 } 197 }
199 line_buf[STD_STRING_STR_LEN] = '\0'; 198 line_buf[STD_STRING_STR_LEN] = '\0';
200 199
201 U32 text_len = 0; 200 S32 text_len = 0;
202 if( 1 != sscanf(line_buf, "Text length %d", &text_len) ) 201 if( 1 != sscanf(line_buf, "Text length %d", &text_len) )
203 { 202 {
204 llwarns << "Invalid Linden text length field" << llendl; 203 llwarns << "Invalid Linden text length field" << llendl;