[PATCH] SWAT fix

jra at dp.samba.org jra at dp.samba.org
Wed Oct 9 19:48:01 GMT 2002


On Wed, Oct 09, 2002 at 04:28:18PM +0900, SUGIOKA Toshinobu wrote:
> Hi.
> 
> Here's a small patch.
> This fixes strange SWAT behavior on some architectures other than i386. 
> (in my case sh-linux)
> 
> --- source/web/cgi.c    3 Oct 2002 03:31:41 -0000       1.60
> +++ source/web/cgi.c    9 Oct 2002 07:19:36 -0000
> @@ -77,7 +77,7 @@
> 
>                 *p = (c1<<4) | c2;
> 
> -               memcpy(p+1, p+3, strlen(p+3)+1);
> +               memmove(p+1, p+3, strlen(p+3)+1);
>                 p++;
>         }
>  }

Great catch ! Applied to all branches.

Thanks,

	Jeremy.



More information about the samba-technical mailing list