changeset 21:d1bb7b365816

Fixed dynamic strings in selections (Fuko Pranks for instance)
author thib
date Fri, 31 Oct 2008 14:30:37 +0000
parents 824b89018ea8
children 759202cf1756
files scn2k/scn2k_cmd.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;}
 	}