glibc 2.3.1: fix for the i386 inline strings code
James Antill
james@and.org
Thu Jan 23 00:04:00 GMT 2003
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
More information about the Libc-alpha
mailing list