Index: ntp_control.c =================================================================== RCS file: /afs/dev.mit.edu/source/repository/third/xntp/xntpd/ntp_control.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 ntp_control.c --- ntp_control.c 1997/12/02 20:28:16 1.1.1.1 +++ ntp_control.c 2001/04/07 21:05:42 @@ -1743,11 +1743,14 @@ return v; } if (*cp == '=') { + int cnt = sizeof(buf); + cp++; tp = buf; while (cp < reqend && isspace(*cp)) cp++; - while (cp < reqend && *cp != ',') + while (cp < reqend && *cp != ',' && + --cnt > 0) *tp++ = *cp++; if (cp < reqend) cp++;