[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm128/adc AdcStreamP.nc, 1.5, 1.6

Jan-Hinrich Hauer janhauer at users.sourceforge.net
Wed Apr 9 01:56:32 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/adc
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv20872

Modified Files:
	AdcStreamP.nc 
Log Message:
bugfix: the buffer passed to ReadStream.postBuffer() must have a certain minimum size to store temporary information (this commit happens in agreement with David G.)


Index: AdcStreamP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/adc/AdcStreamP.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AdcStreamP.nc	8 Feb 2007 17:52:33 -0000	1.5
--- AdcStreamP.nc	9 Apr 2008 08:56:30 -0000	1.6
***************
*** 105,108 ****
--- 105,110 ----
  
    command error_t ReadStream.postBuffer[uint8_t c](uint16_t *buf, uint16_t n) {
+     if (n < sizeof(struct list_entry_t))
+       return ESIZE;
      atomic
        {



More information about the Tinyos-2-commits mailing list