pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #5907] Implement ADD DOCUMENT command.


From: Ben Pfaff
Subject: [patch #5907] Implement ADD DOCUMENT command.
Date: Thu, 03 May 2007 01:49:21 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-1)

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]