NULLed after we freed all of the gizmos
- Fixed bug in vfm (cancel_transformations) where we didn't NULL t_trns after
freeing it
- Updated routines around variable labels to allow 255 char. variable labels
(this is supported by SPSS 11.0 at least...) This doesn't appear to break
backward compat. Let me know if it does.
if (token == T_STRING)
{
- ds_truncate (&tokstr, 120);
+ ds_truncate (&tokstr, 255);
dest_label[n_dest - 1] = xstrdup (ds_value (&tokstr));
lex_get ();
}
next = cur->next;
free_gizmo (cur);
}
+ pool->gizmos=NULL;
}
\f
/* Memory allocation. */
struct label
{
int32 label_len P;
- char label[120] P;
+ char label[255] P;
}
l;
int ext_len;
- l.label_len = min (strlen (v->label), 120);
+ l.label_len = min (strlen (v->label), 255);
ext_len = ROUND_UP (l.label_len, sizeof l.label_len);
memcpy (l.label, v->label, l.label_len);
memset (&l.label[l.label_len], ' ', ext_len - l.label_len);
free (v);
return CMD_PART_SUCCESS_MAYBE;
}
- if (ds_length (&tokstr) > 120)
+ if (ds_length (&tokstr) > 255)
{
- msg (SW, _("Truncating variable label to 120 characters."));
- ds_truncate (&tokstr, 120);
+ msg (SW, _("Truncating variable label to 255 characters."));
+ ds_truncate (&tokstr, 255);
}
for (i = 0; i < nv; i++)
{
if (m_trns > 32)
{
free (t_trns);
+ t_trns=NULL;
m_trns = 0;
}
}