Skip to content

Commit 03bc515

Browse files
committed
Lang is a string, not a char array. The size are not fixed, and not works under Win32.
1 parent 2d4af0b commit 03bc515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alfons/langHelper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace alfons {
2121
const std::string DEFAULT_LANGUAGES = "en:zh-cn"; // GIVING PRIORITY (BY DEFAULT) TO CHINESE OVER JAPANESE
2222

2323
struct HBScriptForLang {
24-
const char lang[7];
24+
const char *lang;
2525
hb_script_t scripts[3];
2626
};
2727

0 commit comments

Comments
 (0)