From c40ca03e315529c5c32b8b594141c0216ec2b41a Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9=20van=20Geldorp?= Date: Wed, 26 Oct 2005 23:19:37 +0000 Subject: [PATCH] Fix lurking bug exposed by r18687 svn path=/trunk/; revision=18781 --- reactos/services/dhcp/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/services/dhcp/options.c b/reactos/services/dhcp/options.c index 135d608334c..46bc453840e 100644 --- a/reactos/services/dhcp/options.c +++ b/reactos/services/dhcp/options.c @@ -595,6 +595,7 @@ pretty_print_option(unsigned int code, unsigned char *data, int len, 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; -- 2.17.1