1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00

Fixing bug in copy for forum (checking array bounds before access instead of after).

This commit is contained in:
David A. Mellis
2009-03-22 12:34:56 +00:00
parent 7e18c29245
commit 628b18674f
2 changed files with 313 additions and 313 deletions

View File

@ -201,9 +201,8 @@ public class DiscourseFormat {
for (;;) {
byte id = tokens.id;
if (id == Token.END) {
char c = segmentArray[segmentOffset + offset];
if (segmentOffset + offset < limit) {
cf.append(c);
cf.append(segmentArray[segmentOffset + offset]);
} else {
cf.append('\n');
}

View File

@ -50,7 +50,8 @@ UPDATES
[environment]
* Reinstating use of core.a library in the build process, slightly shrinking
compiled sketch sizes.
compiled sketch sizes. (Thanks to William Westfield.)
* Fixing bug in copy for forum (thanks to eried).
0014 - 2009.03.07