Fixed problems in strncmp(3) and strncasecmp(3).
This was introduced during the recent refactoring.
This commit is contained in:
parent
47ae712419
commit
260eab8e44
|
@ -27,7 +27,7 @@
|
|||
|
||||
extern "C" int strncasecmp(const char* a, const char* b, size_t maxcount)
|
||||
{
|
||||
while ( --maxcount )
|
||||
while ( maxcount-- )
|
||||
{
|
||||
char ac = tolower(*a++), bc = tolower(*b++);
|
||||
if ( ac == '\0' && bc == '\0' )
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
extern "C" int strncmp(const char* a, const char* b, size_t maxcount)
|
||||
{
|
||||
while ( --maxcount )
|
||||
while ( maxcount-- )
|
||||
{
|
||||
char ac = *a++, bc = *b++;
|
||||
if ( ac == '\0' && bc == '\0' )
|
||||
|
|
Loading…
Reference in New Issue