$OpenBSD: patch-src_utils_libfat_directory_cpp,v 1.1 2018/04/15 20:17:34 naddy Exp $

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;
