summaryrefslogtreecommitdiff
path: root/ace/String_Base.i
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-12 21:56:06 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-12 21:56:06 +0000
commit6368f6e967c01e5e00781ba23a6d6d87e527f437 (patch)
treec0e95315ab8cc28629ad1bbcf4115e6b79788faf /ace/String_Base.i
parentbf981338b065f3726017ae34bc2f37e18df54f4c (diff)
downloadATCD-6368f6e967c01e5e00781ba23a6d6d87e527f437.tar.gz
ChangeLogTag:Fri Jul 12 17:55:08 2002 Carlos O'Ryan <coryan@atdesk.com>
Diffstat (limited to 'ace/String_Base.i')
-rw-r--r--ace/String_Base.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/String_Base.i b/ace/String_Base.i
index 8664859354f..fbc8ba4c934 100644
--- a/ace/String_Base.i
+++ b/ace/String_Base.i
@@ -391,7 +391,7 @@ ACE_String_Base<CHAR>::strstr (const ACE_String_Base<CHAR> &s) const
template <class CHAR> ACE_INLINE ssize_t
ACE_String_Base<CHAR>::rfind (CHAR c, ssize_t pos) const
{
- if (pos > ACE_static_cast (ssize_t, this->len_))
+ if (pos == npos || pos > ACE_static_cast (ssize_t, this->len_))
{
pos = ACE_static_cast (ssize_t, this->len_);
}