diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/databox/edittoken.c | 2 | ||||
-rw-r--r-- | apps/plugins/databox/edittoken.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/databox/edittoken.c b/apps/plugins/databox/edittoken.c index d3145b7e09..e2e1c91818 100644 --- a/apps/plugins/databox/edittoken.c +++ b/apps/plugins/databox/edittoken.c | |||
@@ -98,7 +98,7 @@ void buildtoken(int tokentype,struct token *token) { | |||
98 | case TOKEN_STRING: | 98 | case TOKEN_STRING: |
99 | do { | 99 | do { |
100 | rb->splash(HZ*2,true,"Enter String."); | 100 | rb->splash(HZ*2,true,"Enter String."); |
101 | } while(rb->kbd_input(token->spelling, 254)); | 101 | } while(rb->kbd_input(token->spelling, SPELLING_LENGTH)); |
102 | break; | 102 | break; |
103 | case TOKEN_YEAR: | 103 | case TOKEN_YEAR: |
104 | token->kind=TOKEN_NUMIDENTIFIER; | 104 | token->kind=TOKEN_NUMIDENTIFIER; |
diff --git a/apps/plugins/databox/edittoken.h b/apps/plugins/databox/edittoken.h index 6f176e72b5..77c948b2af 100644 --- a/apps/plugins/databox/edittoken.h +++ b/apps/plugins/databox/edittoken.h | |||
@@ -84,9 +84,11 @@ | |||
84 | #define INTVALUE_GENRE 17 | 84 | #define INTVALUE_GENRE 17 |
85 | #define INTVALUE_FILENAME 18 | 85 | #define INTVALUE_FILENAME 18 |
86 | 86 | ||
87 | #define SPELLING_LENGTH 100 | ||
88 | |||
87 | struct token { | 89 | struct token { |
88 | char kind; | 90 | char kind; |
89 | char spelling[255]; | 91 | char spelling[SPELLING_LENGTH + 1]; |
90 | long intvalue; | 92 | long intvalue; |
91 | }; | 93 | }; |
92 | char *tokentypetostring(int tokentype); | 94 | char *tokentypetostring(int tokentype); |