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:
@ -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');
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user