• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Révision8378 (tree)
l'heure2019-11-21 00:52:53
Auteurzmatsuo

Message de Log

URL強調時にバッファオーバーランが発生していたので修正

Change Summary

Modification

--- branches/unicode_buf/teraterm/teraterm/buffer.c (revision 8377)
+++ branches/unicode_buf/teraterm/teraterm/buffer.c (revision 8378)
@@ -2943,8 +2943,8 @@
29432943 }
29442944
29452945 // マッチした
2946- *sx_match_s = match_x - PageStart;
2947- *sy_match_s = match_y;
2946+ *sx_match_s = match_x;
2947+ *sy_match_s = match_y - PageStart;
29482948 rx = match_x;
29492949 for (y = match_y; y <= PageStart + sy_e; y++) {
29502950 int sx_s_i = 0;
@@ -3048,7 +3048,6 @@
30483048 }
30493049 else {
30503050 BuffDrawLineI(-1, -1, sy_match_s, sx_match_s, sx_match_e);
3051- BuffDrawLineI(-1, -1, sy_match_s, sx_match_s, sx_match_e);
30523051 }
30533052 sx_i = sx_match_e;
30543053 sy_i = sy_match_e;
Afficher sur ancien navigateur de dépôt.