Re: patch: handling of boundary strings

From: Daniel Stenberg <Daniel.Stenberg_at_sth.frontec.se_at_hypermail-project.org>
Date: Mon, 16 Aug 1999 10:48:51 +0200 (MET DST)
Message-ID: <Pine.GSO.4.10.9908161045530.18072-100000_at_metal.sth.frontec.se>


On Fri, 6 Aug 1999 jose.kahan_at_w3.org 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:

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

Any objections?

-- 
             Daniel Stenberg - http://www.fts.frontec.se/~dast
   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