No public description
PiperOrigin-RevId: 707290521
diff --git a/src/hunspell/suggestmgr.cxx b/src/hunspell/suggestmgr.cxx
index 36bf4b9..5fbae1a 100644
--- a/src/hunspell/suggestmgr.cxx
+++ b/src/hunspell/suggestmgr.cxx
@@ -721,8 +721,8 @@
// try inserting a tryme character at the end of the word and before every letter
for (int i = 0; i < ctryl; i++) {
memcpy (candidate_utf, word, wl * sizeof(w_char));
- for (p = candidate_utf + wl;
- p >= candidate_utf && p < candidate_utf + MAXSWL - 1; p--) {
+ for (int offset = wl; offset >= 0 && offset < MAXSWL - 1; --offset) {
+ p = candidate_utf + offset;
*(p + 1) = *p;
*p = ctry_utf[i];
u16_u8(candidate, MAXSWUTF8L, candidate_utf, wl + 1);