Fix lurking bug exposed by r18687
Modified: trunk/reactos/services/dhcp/options.c
--- trunk/reactos/services/dhcp/options.c 2005-10-26 20:42:19 UTC (rev 18780) +++ trunk/reactos/services/dhcp/options.c 2005-10-26 23:19:37 UTC (rev 18781) @@ -595,6 +595,7 @@
foo.s_addr = htonl(getULong(dp)); strncpy(op, inet_ntoa(foo), opleft - 1); op[opleft - 1] = ANSI_NULL;
+ opcount = strlen(op);
if (opcount >= opleft) goto toobig; opleft -= opcount;