qiuq86 / simuino

Automatically exported from code.google.com/p/simuino
0 stars 0 forks source link

Bug in String::getBytes #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

In the method String::getBytes in servuino\arduino_lib.c, at approximately line 
 there is an error in the loop copying the string.  The pointer 'p' was not 
being dereferenced,  The loop should read:

  for(i=0;i<lngth;i++)
    {
      buf[i] = (int)*p;
      p++;
    }

Original issue reported on code.google.com by smor...@gmail.com on 8 Feb 2012 at 5:40

GoogleCodeExporter commented 9 years ago

Original comment by benny.sa...@gmail.com on 9 Feb 2012 at 10:03

GoogleCodeExporter commented 9 years ago
Fixed in next version

Original comment by benny.sa...@gmail.com on 9 Feb 2012 at 5:05

GoogleCodeExporter commented 9 years ago
Fixed in version 0.1.7

Original comment by benny.sa...@gmail.com on 17 Feb 2012 at 4:31