From 328c5f650ffcdc8f10e4ebd6f741ad0b8e6ea1c1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 Mar 2001 01:10:29 +0000 Subject: Update. * timezone/antarctica: Update from tzdata2001a. * timezone/asia: Likewise. * timezone/australasia: Likewise. * timezone/backward: Likewise. * timezone/etcetera: Likewise. * timezone/europe: Likewise. * timezone/leapseconds: Likewise. * timezone/northamerica: Likewise. * timezone/southamerica: Likewise. * timezone/systemv: Likewise. * timezone/yearistype: Likewise. * timezone/zone.tab: Likewise. * timezone/tzdump.c: Update from tzcode2001a. 2001-03-15 H.J. Lu * intl/Makefile: Fix a typo. 2001-03-14 David Mosberger * gmon/gmon.c (write_call_graph): Avoid unaligned accesses when writing arc structures. 2001-03-15 H.J. Lu * elf/Makefile ($(objpfx)tst-pathopt.out): Protected against cross-compiling. 2001-03-13 Andreas Schwab * posix/PTESTS2C.sed: Replace literal CRs by `\r'. 2001-03-15 Ulrich Drepper * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Fix test for control message fitting into message data. Patch by James Antill . --- sysdeps/unix/sysv/linux/cmsg_nxthdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/cmsg_nxthdr.c b/sysdeps/unix/sysv/linux/cmsg_nxthdr.c index fda37f37aa..e6664d1e00 100644 --- a/sysdeps/unix/sysv/linux/cmsg_nxthdr.c +++ b/sysdeps/unix/sysv/linux/cmsg_nxthdr.c @@ -1,5 +1,5 @@ /* Return point to next ancillary data entry in message header. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,7 +32,7 @@ __cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg) if ((unsigned char *) (cmsg + 1) >= ((unsigned char *) mhdr->msg_control + mhdr->msg_controllen) || ((unsigned char *) cmsg + CMSG_ALIGN (cmsg->cmsg_len) - >= ((unsigned char *) mhdr->msg_control + mhdr->msg_controllen))) + > ((unsigned char *) mhdr->msg_control + mhdr->msg_controllen))) /* No more entries. */ return NULL; return cmsg; -- cgit v1.2.3