Re: patch: handling of boundary strings

From: Daniel Stenberg <>
Date: Mon, 16 Aug 1999 10:48:51 +0200 (MET DST)
Message-ID: <>

On Fri, 6 Aug 1999 wrote:

(what is with the mailing list? it took two weeks for Joses mails to arrive at my place, and I've replied since too that haven't arrived. *AND* I have once again changed email-address which probably means that the majordomo is silently dropping my mails. Do I have to say that I find it annoying? Anyway, I'll test to post again, now with using my former address, the one I am subscribed with and that still works to reach me... )

> Here's a small patch to fix this up (sorry, can't do a diff as there are
> too many differences in my parse.c):

> Patch:
> else {
> char *ptr;
> sscanf(boundary, "%[^;]", boundbuffer);
> /* JK: remove the end \n char */
> ptr = strchr (boundbuffer, '\n');
> if (ptr)
> *ptr = '\0';
> }

I made it this way instead:

                    sscanf(boundary, "%[^;\n]", boundbuffer);

Any objections?

             Daniel Stenberg -
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Mon 16 Aug 1999 10:48:55 AM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:51 PM GMT GMT