Fixed a memory access error introduced with rev 1099

This commit is contained in:
Thomas Schmitt 2013-12-22 19:07:28 +01:00
parent fa61b94ac8
commit b0e68bbcaa

View File

@ -1254,7 +1254,8 @@ uint16_t *iso_j_file_id(const uint16_t *src, int flag)
pos++; pos++;
} }
} }
iso_handle_split_utf16(dest + (pos - 1)); if (pos > 0)
iso_handle_split_utf16(dest + (pos - 1));
if ((flag & 1) && lnext <= 0) if ((flag & 1) && lnext <= 0)
goto is_done; goto is_done;