Date: Sun, 22 Jan 2006 03:48:11 GMT From: soc-andrew <soc-andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90144 for review Message-ID: <200601220348.k0M3mBvA010266@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90144 Change 90144 by soc-andrew@soc-andrew_serv on 2006/01/22 03:47:10 Fix a problem where the size of the malloced space is 1 byte too small in libdfui Affected files ... .. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/lib/dfui/conn_tcp.c#2 edit Differences ... ==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/lib/dfui/conn_tcp.c#2 (text+ko) ==== @@ -396,7 +396,7 @@ * Construct a message. */ - fmsg = malloc(strlen(msg) + 1); + fmsg = malloc(strlen(msg) + 2); fmsg[0] = msgtype; strcpy(fmsg + 1, msg); dfui_debug("SEND<<%s>>\n", fmsg);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601220348.k0M3mBvA010266>
