• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Tera Termの個人的な作業用リポジトリ


Commit MetaInfo

Revisióna0d074e85642b7f90dde677e69e8a00f2caaa5db (tree)
Tiempo2023-10-16 23:53:44
Autorzmatsuo <zmatsuo@user...>
Commiterzmatsuo

Log Message

マクロコマンド strjoin で連結文字列を設定する変数を誤っていたので修正

- 連結元の最後の変数に連結文字列を設定していた

ticket #48858

git-svn-id: svn+ssh://svn.osdn.net/svnroot/ttssh2/trunk@11009 f5f01b69-1e22-0410-acbf-894ab4bd6246

Cambiar Resumen

Diferencia incremental

--- a/doc/en/html/about/history.html
+++ b/doc/en/html/about/history.html
@@ -31,6 +31,25 @@
3131
3232 <h2 id="teraterm">Tera Term</h2>
3333
34+<h3 id="teraterm_5.1">YYYY.MM.DD (Ver 5.1, not yet released)</h3>
35+<ul class="history">
36+ <!-- li>Changes
37+ <ul>
38+ </ul>
39+ </li -->
40+
41+ <li>Bug fixes
42+ <ul>
43+ <li>MACRO: <a href="../macro/command/strjoin.html">strjoin</a> command set concatenated string to the wrong variable.</li>
44+ </ul>
45+ </li>
46+
47+ <!-- li>Misc
48+ <ul>
49+ </ul>
50+ </li -->
51+</ul>
52+
3453 <h3 id="teraterm_5.0">2023.10.15 (Ver 5.0)</h3>
3554 <ul class="history">
3655 <li>Changes
--- a/doc/ja/html/about/history.html
+++ b/doc/ja/html/about/history.html
@@ -31,6 +31,25 @@
3131
3232 <h2 id="teraterm">Tera Term</h2>
3333
34+<h3 id="teraterm_5.1">YYYY.MM.DD (Ver 5.1, not yet released)</h3>
35+<ul class="history">
36+ <!-- li>変更
37+ <ul>
38+ </ul>
39+ </li -->
40+
41+ <li>バグ修正
42+ <ul>
43+ <li><a href="../macro/command/strjoin.html">strjoin</a> マクロコマンドで、連結文字列を誤った変数へセットしていた問題を修正した。</li>
44+ </ul>
45+ </li>
46+
47+ <!-- li>その他
48+ <ul>
49+ </ul>
50+ </li -->
51+</ul>
52+
3453 <h3 id="teraterm_5.0">2023.10.15 (Ver 5.0)</h3>
3554 <ul class="history">
3655 <li>変更
--- a/teraterm/ttpmacro/ttl.cpp
+++ b/teraterm/ttpmacro/ttl.cpp
@@ -5046,12 +5046,12 @@ WORD TTLStrSplit()
50465046 #undef MAXVARNUM
50475047 }
50485048
5049-WORD TTLStrJoin()
5049+static WORD TTLStrJoin(void)
50505050 {
50515051 #define MAXVARNUM 9
50525052 TStrVal delimchars, buf;
50535053 WORD Err;
5054- TVarId VarId;
5054+ TVarId TargetVarId;
50555055 WORD VarType;
50565056 int maxvar;
50575057 int i;
@@ -5060,7 +5060,7 @@ WORD TTLStrJoin()
50605060 const char *p;
50615061
50625062 Err = 0;
5063- GetStrVar(&VarId,&Err);
5063+ GetStrVar(&TargetVarId,&Err);
50645064 GetStrVal(delimchars,&Err);
50655065 // 3rd arg (optional)
50665066 if (CheckParameterGiven()) {
@@ -5088,7 +5088,7 @@ WORD TTLStrJoin()
50885088 return ErrSyntax;
50895089
50905090 char dest[MaxStrLen];
5091- strcpy_s(dest, sizeof(dest), StrVarPtr(VarId));
5091+ strcpy_s(dest, sizeof(dest), StrVarPtr(TargetVarId));
50925092 srcptr = dest;
50935093
50945094 srcptr[0] = '\0';
@@ -5097,6 +5097,7 @@ WORD TTLStrJoin()
50975097 }
50985098 else {
50995099 for (i = 0 ; i < maxvar ; i++) {
5100+ TVarId VarId;
51005101 _snprintf_s(buf, sizeof(buf), _TRUNCATE, "groupmatchstr%d", i + 1);
51015102 if (CheckVar(buf,&VarType,&VarId)) {
51025103 if (VarType!=TypString)
@@ -5109,7 +5110,7 @@ WORD TTLStrJoin()
51095110 }
51105111 }
51115112 }
5112- SetStrVal(VarId, dest);
5113+ SetStrVal(TargetVarId, dest);
51135114
51145115 return Err;
51155116 #undef MAXVARNUM