openbsd-ports/emulators/desmume/patches/patch-src_utils_libfat_dire...

13 lines
409 B
Plaintext

Index: src/utils/libfat/directory.cpp
--- src/utils/libfat/directory.cpp.orig
+++ src/utils/libfat/directory.cpp
@@ -139,7 +139,7 @@ static size_t _FAT_directory_mbstoucs2 (ucs2_t* dst, c
int bytes;
size_t count = 0;
- while (count < len-1 && src != '\0') {
+ while (count < len-1 && *src != '\0') {
bytes = mbrtowc (&tempChar, src, MB_CUR_MAX, &ps);
if (bytes > 0) {
*dst = (ucs2_t)tempChar;