# HG changeset patch # User thib # Date 1225463437 0 # Node ID d1bb7b365816646ac330e227d0af1a63b9ab8e4b # Parent 824b89018ea8d40f46993c735377e9f5f21e2204 Fixed dynamic strings in selections (Fuko Pranks for instance) diff --git a/scn2k/scn2k_cmd.cc b/scn2k/scn2k_cmd.cc --- a/scn2k/scn2k_cmd.cc +++ b/scn2k/scn2k_cmd.cc @@ -1199,7 +1199,7 @@ void Cmd::GetSelection(const char*& d) { GetLeftToken(d, info); if (d[0] != 0x29 || info.type == -1) SetError(); d++; - dprintf(";"); + dprintf(";");/* // 数値を全角文字に変換して登録 char str[10], str2[20]; // itoa sprintf(str, "%d", info.value); @@ -1207,8 +1207,8 @@ void Cmd::GetSelection(const char*& d) { str2[i*2] = 0xa3; str2[i*2+1] = 0xb0 + str[i]-'0'; } - str2[i*2] = 0; - text += str2; + str2[i*2] = 0;*/ + text += strheap + info.value; } } else { SetError(); break;} }