aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon
diff options
context:
space:
mode:
authorArmin Weatherwax2011-04-06 16:39:48 +0200
committerMcCabe Maxsted2011-04-11 16:27:58 -0700
commit8e3189342884340fcdc51a3c349ed63dc49ba74b (patch)
tree23fc7a7c0cfca56f43ad4b258fc30c9ca0e6e195 /linden/indra/llcommon
parentMerge remote-tracking branch 'thickbrick/exp' into exp (diff)
downloadmeta-impy-8e3189342884340fcdc51a3c349ed63dc49ba74b.zip
meta-impy-8e3189342884340fcdc51a3c349ed63dc49ba74b.tar.gz
meta-impy-8e3189342884340fcdc51a3c349ed63dc49ba74b.tar.bz2
meta-impy-8e3189342884340fcdc51a3c349ed63dc49ba74b.tar.xz
fix bug #853 crash caused by antistrings
Diffstat (limited to 'linden/indra/llcommon')
-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