Follow-up Comment #3, patch #5907 (project pspp):
How about just making dict_set_documents enforce a document string being an
exact multiple of 80 bytes in length, e.g.
--- dictionary.c.~1.32.2.2.~ 2007-04-22 12:01:47.000000000 -0700
+++ dictionary.c 2007-05-02 18:48:57.000000000 -0700
@@ -1104,6 +1104,7 @@ void
dict_set_documents (struct dictionary *d, const char *documents)
{
assert (d != NULL);
+ assert (documents == NULL || strlen (documents) % 80 == 0);
free (d->documents);
if (documents == NULL)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?5907>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev