summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
55e6e7b)
Requested by friedrich nietzsche <f_nietsje@hotmail.com>.
With improvements by John Darrington.
/* Parse all the labels and add them to the variables. */
do
{
/* Parse all the labels and add them to the variables. */
do
{
+ enum { MAX_LABEL_LEN = 255 };
int width = var_get_width (vars[0]);
union value value;
struct string label;
int width = var_get_width (vars[0]);
union value value;
struct string label;
ds_init_substring (&label, lex_tokss (lexer));
ds_init_substring (&label, lex_tokss (lexer));
- if (ds_length (&label) > 60)
+ if (ds_length (&label) > MAX_LABEL_LEN)
- msg (SW, _("Truncating value label to 60 characters."));
- ds_truncate (&label, 60);
+ msg (SW, _("Truncating value label to %d bytes."), MAX_LABEL_LEN);
+ ds_truncate (&label, MAX_LABEL_LEN);
}
for (i = 0; i < var_cnt; i++)
}
for (i = 0; i < var_cnt; i++)