Removed temporary variable for clarity; Upsized text buffer in fallback to maximum possible size

This commit is contained in:
NHOrus 2017-07-16 16:07:23 +03:00
parent 8d9c8e4d5c
commit 614d9b34ad
2 changed files with 5 additions and 6 deletions

2
main.c
View file

@ -137,7 +137,7 @@ static bool fallback_handler(struct command_t command)
/* fallback handler for commands not handled by FORTRANish parser */
{
long sv;
char buf[LINESIZE];
char buf[2 * LINESIZE + 1];
sprintf(buf, "%s %s", command.raw1, command.raw2);
if (sscanf(buf, "seed %ld", &sv) == 1) {