--- a/physfs_unicode.c Wed Apr 07 12:34:31 2010 -0400 +++ b/physfs_unicode.c Fri Aug 20 02:46:14 2010 -0400 @@ -305,6 +305,7 @@ } /* utf8fromcodepoint */ #define UTF8FROMTYPE(typ, src, dst, len) \ + if (len == 0) return; \ len--; \ while (len) \ { \