diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-03-21 18:20:24 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-21 18:20:24 +0000 |
commit | 7edb08f083dbe1408285a083e4132673b6e1d7be (patch) | |
tree | 3769d4de0431de4d3f3e2cc87964e5b32bad4e71 /src/hash.cpp | |
parent | 759aca25caaaf9a2b22297c4336f12c002d2faac (diff) | |
download | libbu++-7edb08f083dbe1408285a083e4132673b6e1d7be.tar.gz libbu++-7edb08f083dbe1408285a083e4132673b6e1d7be.tar.bz2 libbu++-7edb08f083dbe1408285a083e4132673b6e1d7be.tar.xz libbu++-7edb08f083dbe1408285a083e4132673b6e1d7be.zip |
Fixed another random bug in the string compare for raw strings.
Diffstat (limited to '')
-rw-r--r-- | src/hash.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.cpp b/src/hash.cpp index 004d6dd..c52e6b1 100644 --- a/src/hash.cpp +++ b/src/hash.cpp | |||
@@ -45,7 +45,7 @@ template<> bool __cmpHashKeys<const char *>( const char * const &a, const char * | |||
45 | return true; | 45 | return true; |
46 | 46 | ||
47 | for(int j=0; a[j] == b[j]; j++ ) | 47 | for(int j=0; a[j] == b[j]; j++ ) |
48 | if( *a == '\0' ) | 48 | if( a[j] == '\0' ) |
49 | return true; | 49 | return true; |
50 | 50 | ||
51 | return false; | 51 | return false; |
@@ -74,7 +74,7 @@ template<> bool __cmpHashKeys<char *>( char * const &a, char * const &b ) | |||
74 | return true; | 74 | return true; |
75 | 75 | ||
76 | for(int j=0; a[j] == b[j]; j++ ) | 76 | for(int j=0; a[j] == b[j]; j++ ) |
77 | if( *a == '\0' ) | 77 | if( a[j] == '\0' ) |
78 | return true; | 78 | return true; |
79 | 79 | ||
80 | return false; | 80 | return false; |