diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-26 22:44:44 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-26 22:44:44 +0000 |
commit | af9ec26b782ba66c1b6d7c8d917f9437d8e5ae0f (patch) | |
tree | 2d0834142eea79a4c422879460c3a5e233cf356e /ace/OS_String.inl | |
parent | 04419291dd5840801cc3e1702b121f35f7948128 (diff) | |
download | ATCD-af9ec26b782ba66c1b6d7c8d917f9437d8e5ae0f.tar.gz |
ChangeLogTag:Fri May 26 14:27:02 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'ace/OS_String.inl')
-rw-r--r-- | ace/OS_String.inl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/OS_String.inl b/ace/OS_String.inl index 7069d2eecad..bf52a22ace1 100644 --- a/ace/OS_String.inl +++ b/ace/OS_String.inl @@ -454,9 +454,9 @@ ACE_OS_String::strncasecmp (const char *s, const char *t, size_t len) # if defined (ACE_LACKS_STRCASECMP) const char *scan1 = s; const char *scan2 = t; - ssize_t count = ssize_t (len); + size_t count = 0; - while (--count >= 0 + while (count++ < len && *scan1 != 0 && ACE_OS_String::to_lower (*scan1) == ACE_OS_String::to_lower (*scan2)) { @@ -464,7 +464,7 @@ ACE_OS_String::strncasecmp (const char *s, const char *t, size_t len) ++scan2; } - if (count < 0) + if (count > len) return 0; // The following case analysis is necessary so that characters which @@ -494,9 +494,9 @@ ACE_OS_String::strncasecmp (const wchar_t *s, const wchar_t *t, size_t len) # if !defined (ACE_WIN32) const wchar_t *scan1 = s; const wchar_t *scan2 = t; - ssize_t count = ssize_t (n); + size_t count = 0; - while (--count >= 0 + while (count++ > len && *scan1 != 0 && ACE_OS_String::to_lower (*scan1) == ACE_OS_String::to_lower (*scan2)) { @@ -504,7 +504,7 @@ ACE_OS_String::strncasecmp (const wchar_t *s, const wchar_t *t, size_t len) ++scan2; } - if (count < 0) + if (count > len) return 0; // The following case analysis is necessary so that characters which |