bootp.c (56e53cb8ef000c3ef72337a4095987a932cdedef) bootp.c (d07ea92f55834f7343e25e81d2858846205dd23a)
1/* $NetBSD: bootp.c,v 1.14 1998/02/16 11:10:54 drochner Exp $ */
2
3/*
4 * Copyright (c) 1992 Regents of the University of California.
5 * All rights reserved.
6 *
7 * This software was developed by the Computer Systems Engineering group
8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and

--- 721 unchanged lines hidden (view full) ---

730 }
731 break;
732
733 case __INDIR: /* name=value */
734 case __ILIST: /* name=value;name=value... */
735 bcopy(cp, buf, size); /* cannot overflow */
736 buf[size] = '\0';
737 for (endv = buf; endv; endv = vp) {
1/* $NetBSD: bootp.c,v 1.14 1998/02/16 11:10:54 drochner Exp $ */
2
3/*
4 * Copyright (c) 1992 Regents of the University of California.
5 * All rights reserved.
6 *
7 * This software was developed by the Computer Systems Engineering group
8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and

--- 721 unchanged lines hidden (view full) ---

730 }
731 break;
732
733 case __INDIR: /* name=value */
734 case __ILIST: /* name=value;name=value... */
735 bcopy(cp, buf, size); /* cannot overflow */
736 buf[size] = '\0';
737 for (endv = buf; endv; endv = vp) {
738 u_char *s = NULL; /* semicolon ? */
738 char *s = NULL; /* semicolon ? */
739
740 /* skip leading whitespace */
741 while (*endv && strchr(" \t\n\r", *endv))
742 endv++;
743 vp = strchr(endv, '='); /* find name=value separator */
744 if (!vp)
745 break;
746 *vp++ = 0;

--- 35 unchanged lines hidden ---
739
740 /* skip leading whitespace */
741 while (*endv && strchr(" \t\n\r", *endv))
742 endv++;
743 vp = strchr(endv, '='); /* find name=value separator */
744 if (!vp)
745 break;
746 *vp++ = 0;

--- 35 unchanged lines hidden ---