mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
Bug 68990 - test-common fails on i686-linux
Fix use-after-end-of-scope.
This commit is contained in:
1 parent
b61f97d544
commit
48360ec03b
1 file changed
+4
-2
+4
-2
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user