提交 48360ec0 编写于 作者: B Behdad Esfahbod

Bug 68990 - test-common fails on i686-linux

Fix use-after-end-of-scope.
上级 b61f97d5
......@@ -292,11 +292,13 @@ retry:
hb_language_t
hb_language_from_string (const char *str, int len)
{
char strbuf[64];
if (!str || !len || !*str)
return HB_LANGUAGE_INVALID;
if (len >= 0) {
char strbuf[64];
if (len >= 0)
{
len = MIN (len, (int) sizeof (strbuf) - 1);
str = (char *) memcpy (strbuf, str, len);
strbuf[len] = '\0';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册