summaryrefslogtreecommitdiff
path: root/lib/memcmp2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memcmp2.c')
-rw-r--r--lib/memcmp2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/memcmp2.c b/lib/memcmp2.c
index 7f8f604..a042948 100644
--- a/lib/memcmp2.c
+++ b/lib/memcmp2.c
@@ -1,5 +1,5 @@
/* Compare two memory areas with possibly different lengths.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
@@ -28,9 +28,9 @@ memcmp2 (const char *s1, size_t n1, const char *s2, size_t n2)
if (cmp == 0)
{
if (n1 < n2)
- cmp = -1;
+ cmp = -1;
else if (n1 > n2)
- cmp = 1;
+ cmp = 1;
}
return cmp;
}