1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-02-27 00:59:57 +00:00

SCP: Updated to current.

This commit is contained in:
Richard Cornwell
2021-04-11 20:02:25 -04:00
parent 363d4b6fb3
commit 55d47817a9
2 changed files with 3 additions and 2 deletions

4
scp.c
View File

@@ -15730,7 +15730,7 @@ while (t->function_name) {
if (*remainder != '\0')
return sim_messagef (SCPE_IERR, "function: %s (\"\", gbuf, 0); returned a non empty string: \"%s\"\n", t->function_name, remainder);
while (*input) {
while ((input != NULL) && (*input != '\0')) {
char end_char_string[32];
if (sim_isprint (d->end_char))
@@ -15759,7 +15759,7 @@ while (t->function_name) {
}
input = remainder;
++d;
if (((input == NULL) || (*input != '\0')) && (d->expected_result == NULL))
if ((*input != '\0') && (d->expected_result == NULL))
return sim_messagef (SCPE_IERR, "Invalid test configuration detected\n");
}
++t;

View File

@@ -332,6 +332,7 @@ if (((*file == '"') && (file[strlen (file) - 1] == '"')) ||
if (without_quotes == NULL)
return NULL;
if (SCPE_OK != sim_decode_quoted_string (file, without_quotes, &dsize)) {
free (without_quotes);
errno = EINVAL;
return NULL;
}