physfs_unicode.c
branchstable-2.0
changeset 1095 69b884a15de1
parent 1014 2a649b61434c
child 1164 18a21ee32131
--- 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) \
     { \