Hi, I don't know the size of multiline value so, I reserve a buffer with size equal to size of vcard (strlen(vcard)) minus the size of vcard before the begin of value (value - vcard) so I have a buffer with the maximum size the multiline-value can have.
In many case the size of new buffer is more large that I need but so I'm sure to have the space that I need and I can't to reserve new space at any line of multiline-value I parser. I think that is a good compromise, you don't ? Regards, Sergio Il giorno ven, 28/10/2005 alle 13.37 +0200, Nabil Sayegh ha scritto: > Am Freitag 28 Oktober 2005 11:39 schrieb Sergio CERLESI: > > Hi all, > > > > I wrote the attached patch for rra to add support for vcard with > > multiline value. I need to it for sync my contact with evolution. > > > > What do you think about? > > -------8<--------- > value_ml = malloc(strlen(vcard) - (value - vcard)); > -------8<--------- > > Are you sure that this is correct? ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Synce-devel mailing list Synce-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel