diff options
Diffstat (limited to 'apps/interpreters')
-rw-r--r-- | apps/interpreters/bas/Kconfig | 1 | ||||
-rw-r--r-- | apps/interpreters/bas/str.c | 1 | ||||
-rw-r--r-- | apps/interpreters/bas/value.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/apps/interpreters/bas/Kconfig b/apps/interpreters/bas/Kconfig index 567ab289f..27c67ac70 100644 --- a/apps/interpreters/bas/Kconfig +++ b/apps/interpreters/bas/Kconfig @@ -8,6 +8,7 @@ config INTERPRETERS_BAS default n select SCHED_WAITPID select LIBC_EXECFUNCS + select LIBC_FLOATINGPOINT depends on FS_READABLE ---help--- This is a Basic interpreter written by Michael Haardt diff --git a/apps/interpreters/bas/str.c b/apps/interpreters/bas/str.c index fcab74a39..134cb0634 100644 --- a/apps/interpreters/bas/str.c +++ b/apps/interpreters/bas/str.c @@ -254,6 +254,7 @@ int String_appendChar(struct String *this, char ch) { String_leaveField(this); } + if (String_size(this, this->length + 1) == -1) { return -1; diff --git a/apps/interpreters/bas/value.c b/apps/interpreters/bas/value.c index 3f8c86c9e..db2ed1130 100644 --- a/apps/interpreters/bas/value.c +++ b/apps/interpreters/bas/value.c @@ -1719,6 +1719,7 @@ struct String *Value_toString(struct Value *this, struct String *s, char pad, { s->character[oldlength] = '$'; } + String_destroy(&buf); break; } |