Tera Termの色設定をセットで切り替えます。
リビジョン | 50d61e0920d4569aff4bcd71d70246666afd2209 (tree) |
---|---|
日時 | 2018-07-02 15:16:04 |
作者 | IWAMOTO Kouichi <sue@iwmt...> |
コミッター | IWAMOTO Kouichi |
色の間にスペースを入れるとバッファが溢れて設定が読みきれない時があったのを修正
@@ -183,7 +183,7 @@ static void PASCAL FAR TTXGetUIHooks(TTXUIHooks FAR * hooks) { | ||
183 | 183 | } |
184 | 184 | |
185 | 185 | void ReadANSIColorSetting(TAnsiColorSetting *color, int num, char *fn) { |
186 | - char Key[32], Buff[200]; | |
186 | + char Key[32], Buff[512]; | |
187 | 187 | int c, r, g, b; |
188 | 188 | |
189 | 189 | _snprintf_s(Key, sizeof(Key), _TRUNCATE, "ANSIColor_%d", num + 1); |
@@ -206,7 +206,7 @@ void ReadANSIColorSetting(TAnsiColorSetting *color, int num, char *fn) { | ||
206 | 206 | } |
207 | 207 | |
208 | 208 | void ReadColorSetting(TColorSetting *color, char *ent, int num, char *fn) { |
209 | - char Key[32], Buff[200]; | |
209 | + char Key[32], Buff[512]; | |
210 | 210 | int c, r, g, b; |
211 | 211 | |
212 | 212 | _snprintf_s(Key, sizeof(Key), _TRUNCATE, "%s_%d", ent, num + 1); |