Patch tdb to compile with the new Makefile and gcc 4.6.3
This commit is contained in:
parent
c11e5bccfa
commit
9f563a7cb3
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ void tdb_shell(tvm_t *vm)
|
|||
|
||||
for(i = 0; i < MAX_TOKENS; i++) memset(tokens[i], 0, TOKEN_LENGTH);
|
||||
|
||||
fgets(str, MAX_INPUT_LENGTH, stdin);
|
||||
if (!fgets(str, MAX_INPUT_LENGTH, stdin))
|
||||
break;
|
||||
tokenize(str, (char **)tokens);
|
||||
|
||||
switch(cmd_to_idx(tokens[0]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue