aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/llcommon/llstring.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/llcommon/llstring.cpp b/linden/indra/llcommon/llstring.cpp
index 1f653c1..0f72d5e 100644
--- a/linden/indra/llcommon/llstring.cpp
+++ b/linden/indra/llcommon/llstring.cpp
@@ -50,7 +50,8 @@ std::string ll_safe_string(const char* in)
50 50
51std::string ll_safe_string(const char* in, S32 maxlen) 51std::string ll_safe_string(const char* in, S32 maxlen)
52{ 52{
53 if(in) return std::string(in, maxlen); 53//KOKUA FIXME: Which wormhole all the antistrings (strings with negative length) come from ?
54 if(in && maxlen > 0) return std::string(in, maxlen);
54 return std::string(); 55 return std::string();
55} 56}
56 57