aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/string.c b/src/core/string.c
index c35015b59..188fe0864 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -116,7 +116,7 @@ int memcmp ( const void *first, const void *second, size_t len ) {
int diff;
while ( len-- ) {
- diff = ( *(second_bytes++) - *(first_bytes++) );
+ diff = ( *(first_bytes++) - *(second_bytes++) );
if ( diff )
return diff;
}