>> wow, seems that nobody ever user mysql password hashes (since I don't >> think the code for it has ever changed). > No, works like a charm here (without your patch) since years... ok, despite my guess, this code changed from 1.4 to 1.5. If you use the old version, there's no problem: switch (n = strlen(pwhash + 7)) ps: please post to the list.