This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc 2.3.1: fix for the i386 inline strings code
- From: James Antill <james at and dot org>
- To: Denis Zaitsev <zzz at cd-club dot ru>
- Cc: Andreas Jaeger <aj at suse dot de>, libc-alpha at sources dot redhat dot com
- Date: 06 Jan 2003 17:06:21 -0500
- Subject: Re: glibc 2.3.1: fix for the i386 inline strings code
- References: <20030106063048.A32392@natasha.zzz.zzz><u8u1gm7fwy.fsf@gromit.moeb>
Andreas Jaeger <aj@suse.de> writes:
> Denis Zaitsev <zzz@cd-club.ru> writes:
>
> > Nobody has answered to me for a while, so I'm resending this
> > politely...
> >
> > This is a trivial patch for the inlined i386 strings' header. Without
> > it, say, X11 can't be compiled with -D__USE_STRING_INLINES - a
> > problems will be caused by XtNewString and X11's own bzero. These
>
> What exactly is the problem with X11?
Looking at the diff. both...
void *ptr = "abcd";
char buf[8];
strcpy(buf, ptr);
...and...
size_t len = 4;
char buf[8];
memset(buf, 0, 1 & 3);
...break the macros.
--
# James Antill -- james@and.org
:0:
* ^From: .*james@and\.org
/dev/null