[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/imote2
BluSHM.nc, 1.4, 1.5
Robbie Adler
radler at users.sourceforge.net
Fri Sep 2 15:21:21 PDT 2005
Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9758
Modified Files:
BluSHM.nc
Log Message:
NULL terminated return string buffer before callApp is called in order to prevent applications that didn't touch the output buffer from having garbled output
Index: BluSHM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2/BluSHM.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** BluSHM.nc 31 Aug 2005 00:50:11 -0000 1.4
--- BluSHM.nc 2 Sep 2005 22:21:19 -0000 1.5
***************
*** 172,175 ****
--- 172,176 ----
if((strncmp(temp,data->src,strlen(temp)) == 0) &&
((data->src[strlen(temp)] == ' ') || (data->src[strlen(temp)] == '\0'))){
+ *retStr=0;
call BluSH_AppI.callApp[j](data->src, BLUSH_CMDLINE_LENGTH, retStr, MAX_RETURN_STRING);
// Watch out for buffer overflow.
More information about the Tinyos-beta-commits
mailing list