fix missing nul-terminator.

This commit is contained in:
Enno Rehling 2016-11-09 11:54:34 +01:00
parent f68fcf40a6
commit 7d79822aa4

View file

@ -60,6 +60,10 @@ int unicode_utf8_mkname(utf8_t * op, size_t outlen, const utf8_t * ip)
} }
ip += size; ip += size;
} }
if (outlen <= 0) {
return ENOMEM;
}
*op = 0;
return 0; return 0;
} }