diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-11-04 21:21:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-11-04 21:21:25 +0000 |
commit | c99fa1193f3be035853c686ea9dca148002061ef (patch) | |
tree | 888b886852eee6f39212f7469e9f46620e160ac5 /lib/libocurses/cur_hash.c | |
parent | 0b247b4e5d7f8d949b54a7a6b386d25991ffd934 (diff) |
Some -Wall and use strlcpy
Diffstat (limited to 'lib/libocurses/cur_hash.c')
-rw-r--r-- | lib/libocurses/cur_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libocurses/cur_hash.c b/lib/libocurses/cur_hash.c index ed47fe37333..b3b84ba54ed 100644 --- a/lib/libocurses/cur_hash.c +++ b/lib/libocurses/cur_hash.c @@ -52,7 +52,7 @@ __hash(s, len) i = 0; while (i < len) { h = (h << 4) + s[i]; - if (g = h & 0xf0000000) { + if ((g = h & 0xf0000000)) { h = h ^ (g >> 24); h = h ^ g; } |