mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-28 18:08:03 +03:00
Fix a bug in M command + quoted string
This commit is contained in:
@@ -708,12 +708,12 @@ void NACT_Sys3::cmd_l()
|
||||
void NACT_Sys3::cmd_m()
|
||||
{
|
||||
char string[22];
|
||||
int p = 0;
|
||||
|
||||
int d = getd();
|
||||
if (d == '\'' || d == '"') { // SysEng
|
||||
get_string(string, sizeof(string), d);
|
||||
} else {
|
||||
int p = 0;
|
||||
while(d != ':') {
|
||||
if(is_2byte_message(d)) {
|
||||
string[p++] = d;
|
||||
@@ -723,8 +723,8 @@ void NACT_Sys3::cmd_m()
|
||||
}
|
||||
d = getd();
|
||||
}
|
||||
string[p] = '\0';
|
||||
}
|
||||
string[p] = '\0';
|
||||
|
||||
output_console("\nM %s:", string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user