Fixed problems in strncmp(3) and strncasecmp(3).

This was introduced during the recent refactoring.
This commit is contained in:
Jonas 'Sortie' Termansen 2012-07-31 20:41:19 +02:00
parent 47ae712419
commit 260eab8e44
2 changed files with 2 additions and 2 deletions

View File

@ -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' )

View File

@ -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' )