diff options
author | Oz Linden <oz@lindenlab.com> | 2012-12-10 15:24:08 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-12-10 15:24:08 -0500 |
commit | 623a06aabd9d7e5c7e74211360aa233ec33e4977 (patch) | |
tree | 21c815db542e45fc07473cd26a24561c5f27add8 /indra/llcommon/llstring.cpp | |
parent | d56a98dea4c7523a759bea4740d8bdde1df15e30 (diff) | |
parent | a9ada0cc6a1418da0908f995b1369912a270b22d (diff) |
merge release tag
Diffstat (limited to 'indra/llcommon/llstring.cpp')
-rw-r--r-- | indra/llcommon/llstring.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp index fa0eb9f72c..0c32679744 100644 --- a/indra/llcommon/llstring.cpp +++ b/indra/llcommon/llstring.cpp @@ -47,7 +47,8 @@ std::string ll_safe_string(const char* in) std::string ll_safe_string(const char* in, S32 maxlen) { - if(in) return std::string(in, maxlen); + if(in && maxlen > 0 ) return std::string(in, maxlen); + return std::string(); } |