SCCS-vsn: lib/libc/stdio/findfp.c 5.11
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)findfp.c 5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)findfp.c 5.11 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
register FILE *p;
static FILE empty;
register FILE *p;
static FILE empty;
- g = (struct glue *)malloc(sizeof(*g) + n * sizeof(FILE));
+ g = (struct glue *)malloc(sizeof(*g) + ALIGNBYTES + n * sizeof(FILE));
if (g == NULL)
return (NULL);
if (g == NULL)
return (NULL);
+ p = (FILE *)ALIGN(g + 1);
g->next = NULL;
g->niobs = n;
g->iobs = p;
g->next = NULL;
g->niobs = n;
g->iobs = p;