This commit is contained in:
Georgi Kodinov 2012-07-05 14:41:04 +03:00
commit 5a496caeb5
2 changed files with 6 additions and 1 deletions

View file

@ -4421,6 +4421,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
{
int code;
char hex[]= "0123456789abcdef";
if (s >= e)
return MY_CS_TOOSMALL;
if (wc < 128 && filename_safe_char[wc])
{
*s= (uchar) wc;