use correct size to hex decode salt

This fixes "stack smashing detected" (Issue #26)