13 lines
455 B
Diff
13 lines
455 B
Diff
diff -Naur a/src/utils/libfat/directory.cpp b/src/utils/libfat/directory.cpp
|
|
--- a/src/utils/libfat/directory.cpp 2015-02-14 10:05:26.000000000 -0500
|
|
+++ b/src/utils/libfat/directory.cpp 2018-03-02 13:15:20.349936425 -0500
|
|
@@ -139,7 +139,7 @@
|
|
int bytes;
|
|
size_t count = 0;
|
|
|
|
- while (count < len-1 && src != '\0') {
|
|
+ while (count < len-1 && src) {
|
|
bytes = mbrtowc (&tempChar, src, MB_CUR_MAX, &ps);
|
|
if (bytes > 0) {
|
|
*dst = (ucs2_t)tempChar;
|