lhasa
lhasa copied to clipboard
Avoid SIGSEGV on decoding 8bit char filenames on NetBSD/amd64.
Both 'path' and 'filename' members are defined as (char *) so 8bit character (ancient Japanese Shift_JIS etc.) in filenames is treated as a negative value and casting such a negative value to (unsigned) generates an unexpected large value.