Patch tdb to compile with the new Makefile and gcc 4.6.3

This commit is contained in:
bl0ckeduser 2013-01-28 21:03:23 -05:00
parent c11e5bccfa
commit 9f563a7cb3

View file

@ -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]))