[gamecode] Accept EOS at end of conversion specifier

This commit is contained in:
Bill Currie 2020-04-01 18:32:30 +09:00
parent 17bb408b57
commit 7f4d2215e2

View file

@ -1073,7 +1073,11 @@ fmt_state_conversion (fmt_state_t *state)
fmt_append_item (state);
break;
}
state->state = fmt_state_format;
if (*state->c) {
state->state = fmt_state_format;
} else {
state->state = 0; // finished
}
}
static void