=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/Attic/aux.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/mail/Attic/aux.c 1997/07/25 21:05:33 1.8 --- src/usr.bin/mail/Attic/aux.c 1997/07/28 15:20:28 1.9 *************** *** 1,4 **** ! /* $OpenBSD: aux.c,v 1.8 1997/07/25 21:05:33 mickey Exp $ */ /* $NetBSD: aux.c,v 1.5 1997/05/13 06:15:52 mikel Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: aux.c,v 1.9 1997/07/28 15:20:28 millert Exp $ */ /* $NetBSD: aux.c,v 1.5 1997/05/13 06:15:52 mikel Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)aux.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: aux.c,v 1.8 1997/07/25 21:05:33 mickey Exp $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static char sccsid[] = "@(#)aux.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: aux.c,v 1.9 1997/07/28 15:20:28 millert Exp $"; #endif #endif /* not lint */ *************** *** 462,477 **** register char *cp, *cp2; char *bufend; int gotlt, lastsp; - char nbuf[BUFSIZ]; if (name == NULL) return(NULL); if (strchr(name, '(') == NULL && strchr(name, '<') == NULL && strchr(name, ' ') == NULL) return(name); gotlt = 0; lastsp = 0; - bufend = nbuf; for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; ) { switch (c) { case '(': --- 462,477 ---- register char *cp, *cp2; char *bufend; int gotlt, lastsp; if (name == NULL) return(NULL); if (strchr(name, '(') == NULL && strchr(name, '<') == NULL && strchr(name, ' ') == NULL) return(name); + if ((bufend = (char *)malloc(strlen(name) + 1)) == NULL) + panic("Out of memory"); gotlt = 0; lastsp = 0; for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; ) { switch (c) { case '(': *************** *** 552,558 **** } *cp2 = 0; ! return(savestr(nbuf)); } /* --- 552,560 ---- } *cp2 = 0; ! if ((bufend = realloc(bufend, strlen(bufend) + 1)) == NULL) ! panic("Out of memory"); ! return(bufend); } /*