summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/databox/edittoken.c2
-rw-r--r--apps/plugins/databox/edittoken.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/databox/edittoken.c b/apps/plugins/databox/edittoken.c
index d3145b7..e2e1c91 100644
--- a/apps/plugins/databox/edittoken.c
+++ b/apps/plugins/databox/edittoken.c
@@ -98,7 +98,7 @@ void buildtoken(int tokentype,struct token *token) {
case TOKEN_STRING:
do {
rb->splash(HZ*2,true,"Enter String.");
- } while(rb->kbd_input(token->spelling, 254));
+ } while(rb->kbd_input(token->spelling, SPELLING_LENGTH));
break;
case TOKEN_YEAR:
token->kind=TOKEN_NUMIDENTIFIER;
diff --git a/apps/plugins/databox/edittoken.h b/apps/plugins/databox/edittoken.h
index 6f176e7..77c948b 100644
--- a/apps/plugins/databox/edittoken.h
+++ b/apps/plugins/databox/edittoken.h
@@ -84,9 +84,11 @@
#define INTVALUE_GENRE 17
#define INTVALUE_FILENAME 18
+#define SPELLING_LENGTH 100
+
struct token {
char kind;
- char spelling[255];
+ char spelling[SPELLING_LENGTH + 1];
long intvalue;
};
char *tokentypetostring(int tokentype);