Skip to content

Commit bac44df

Browse files
committed
Translate: localize variable i in preprocessByDump() (fixed a regression bug that affects Google Translate engine)
1 parent 04102e0 commit bac44df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/Translate.awk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function preprocess(text) {
8787
}
8888

8989
# Pre-process string (using hexdump to URL-encode everything).
90-
function preprocessByDump(text, arr, len, temp) {
90+
function preprocessByDump(text, arr, i, len, temp) {
9191
len = dumpX(text, arr)
9292
temp = ""
9393
for (i = 1; i <= len; i++)

0 commit comments

Comments
 (0)