[dhcp-agent-commits] dhcp-agent/src dhcp-stringbuffer.c,1.4,1.5
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2002-12-15 04:37:05
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv25172 Modified Files: dhcp-stringbuffer.c Log Message: memcpy instead of strncat Index: dhcp-stringbuffer.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-stringbuffer.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** dhcp-stringbuffer.c 16 Nov 2002 00:23:44 -0000 1.4 --- dhcp-stringbuffer.c 15 Dec 2002 04:37:02 -0000 1.5 *************** *** 65,69 **** new_string = allocate_string(len); ! strncpy(new_string, begin, len); new_string[len] = 0; --- 65,69 ---- new_string = allocate_string(len); ! memcpy(newstring, begin, len); new_string[len] = 0; |