diff options
| author | Simon Rettberg | 2019-02-15 10:38:39 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2019-02-15 10:38:39 +0100 |
| commit | 893714cfea74a68b5637f1d9866d1b8d8973cf94 (patch) | |
| tree | 0bc3209f0dc939a4dab61218c9af71f904bb17e5 /src/core/string.c | |
| parent | [efi] Add support for console --update in efifb mode (diff) | |
| parent | [init] Show startup and shutdown function names in debug messages (diff) | |
| download | ipxe-893714cfea74a68b5637f1d9866d1b8d8973cf94.tar.gz ipxe-893714cfea74a68b5637f1d9866d1b8d8973cf94.tar.xz ipxe-893714cfea74a68b5637f1d9866d1b8d8973cf94.zip | |
Merge branch 'master' into openslx
Diffstat (limited to 'src/core/string.c')
| -rw-r--r-- | src/core/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/string.c b/src/core/string.c index 5a185e635..5bd9dae8b 100644 --- a/src/core/string.c +++ b/src/core/string.c @@ -173,7 +173,7 @@ int strncmp ( const char *first, const char *second, size_t max ) { int diff; for ( ; max-- ; first_bytes++, second_bytes++ ) { - diff = ( *second_bytes - *first_bytes ); + diff = ( *first_bytes - *second_bytes ); if ( diff ) return diff; if ( ! *first_bytes ) @@ -195,8 +195,8 @@ int strcasecmp ( const char *first, const char *second ) { int diff; for ( ; ; first_bytes++, second_bytes++ ) { - diff = ( toupper ( *second_bytes ) - - toupper ( *first_bytes ) ); + diff = ( toupper ( *first_bytes ) - + toupper ( *second_bytes ) ); if ( diff ) return diff; if ( ! *first_bytes ) |
