src/physfs_unicode.c
changeset 1092 12c87d886a75
parent 1016 957c97389257
child 1093 738b2ee912b9
--- a/src/physfs_unicode.c	Fri Aug 20 01:25:32 2010 -0400
+++ b/src/physfs_unicode.c	Fri Aug 20 02:35:01 2010 -0400
@@ -305,6 +305,7 @@
 } /* utf8fromcodepoint */
 
 #define UTF8FROMTYPE(typ, src, dst, len) \
+    if (len == 0) return; \
     len--;  \
     while (len) \
     { \