=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/find/misc.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/find/misc.c 1996/10/24 03:46:05 1.3 --- src/usr.bin/find/misc.c 1997/06/30 23:54:08 1.4 *************** *** 1,4 **** ! /* $OpenBSD: misc.c,v 1.3 1996/10/24 03:46:05 tholo Exp $ */ /*- * Copyright (c) 1990, 1993 --- 1,4 ---- ! /* $OpenBSD: misc.c,v 1.4 1997/06/30 23:54:08 millert Exp $ */ /*- * Copyright (c) 1990, 1993 *************** *** 38,44 **** #ifndef lint /*static char sccsid[] = "from: @(#)misc.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: misc.c,v 1.3 1996/10/24 03:46:05 tholo Exp $"; #endif /* not lint */ #include --- 38,44 ---- #ifndef lint /*static char sccsid[] = "from: @(#)misc.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: misc.c,v 1.4 1997/06/30 23:54:08 millert Exp $"; #endif /* not lint */ #include *************** *** 67,73 **** register char ch, *p; plen = strlen(path); ! for (p = *store; ch = *orig; ++orig) if (ch == '{' && orig[1] == '}') { while ((p - *store) + plen > len) if (!(*store = realloc(*store, len *= 2))) --- 67,73 ---- register char ch, *p; plen = strlen(path); ! for (p = *store; (ch = *orig); ++orig) if (ch == '{' && orig[1] == '}') { while ((p - *store) + plen > len) if (!(*store = realloc(*store, len *= 2))) *************** *** 125,131 **** { void *p; ! if (p = malloc(len)) return (p); err(1, NULL); } --- 125,131 ---- { void *p; ! if ((p = malloc(len))) return (p); err(1, NULL); }