diff options
| author | Andreas Rottmann <a.rottmann@gmx.at> | 2010-05-27 18:23:17 +0200 | 
|---|---|---|
| committer | Andreas Rottmann <a.rottmann@gmx.at> | 2010-05-27 18:23:17 +0200 | 
| commit | bd6adfa17d453e4c486e36fed4c5779db90a8a0e (patch) | |
| tree | 9798677560d5f99061afe9f0db105a8c97f2438a /lib/memcmp2.c | |
| parent | 79ca645d222db2e158784642c3b464a47bea26f3 (diff) | |
| parent | 3e0814cd9862b89c7a39672672937477bd87ddfb (diff) | |
Merge commit 'upstream/0.9.3'
Diffstat (limited to 'lib/memcmp2.c')
| -rw-r--r-- | lib/memcmp2.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/memcmp2.c b/lib/memcmp2.c index 7f8f6049..a0429483 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;  }  | 
