summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 831e0aa..434fca6 100644
--- a/parser.c
+++ b/parser.c
@@ -1181,7 +1181,7 @@ static int Go_Str_eprom_47(gchar** response, int channel, char *loc_string,char
switch (command_type) {
case command_param_units:
- if ( (strlen(store_string) < LCD_cols) && (eprom_loc >= 0)) {
+ if ( (strlen(store_string) < sizeof(globals.Flash.model_num)) && (eprom_loc >= 0)) {
int i;
for (i=0; i<strlen(store_string); ++i) {
/* convert ~ to spaces */