diff options
Diffstat (limited to 'dev-libs/libstrophe/files/libstrophe-fix-crash-on-non-latin1.patch')
-rw-r--r-- | dev-libs/libstrophe/files/libstrophe-fix-crash-on-non-latin1.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/dev-libs/libstrophe/files/libstrophe-fix-crash-on-non-latin1.patch b/dev-libs/libstrophe/files/libstrophe-fix-crash-on-non-latin1.patch deleted file mode 100644 index 41699ad..0000000 --- a/dev-libs/libstrophe/files/libstrophe-fix-crash-on-non-latin1.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/src/hash.c b/src/hash.c -index 27d2756..111149a 100644 ---- a/src/hash.c -+++ b/src/hash.c -@@ -109,13 +109,13 @@ void hash_release(hash_t * const table) - /** hash a key for our table lookup */ - static int _hash_key(hash_t *table, const char *key) - { -- int hash = 0; -+ unsigned int hash = 0; - int shift = 0; - const char *c = key; - - while (*c != '\0') { - /* assume 32 bit ints */ -- hash ^= ((int)*c++ << shift); -+ hash ^= ((unsigned int)*c++ << shift); - shift += 8; - if (shift > 24) shift = 0; - } |