mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Fixed some bounds misscalculations
This commit is contained in:
parent
d48ca850b2
commit
dd6039098d
@ -106,8 +106,8 @@ void close_cb(Fl_Widget*, void*) {
|
|||||||
char* prepare_style(char* txt, int len) {
|
char* prepare_style(char* txt, int len) {
|
||||||
// paint all with 'A' style at startup
|
// paint all with 'A' style at startup
|
||||||
char* style = new char[len + 1];
|
char* style = new char[len + 1];
|
||||||
memset(style, 'A', len);
|
memset(style, 'A', len - 1);
|
||||||
style[len + 1] = '\0';
|
style[len] = '\0';
|
||||||
|
|
||||||
// find bold keywords and paint them
|
// find bold keywords and paint them
|
||||||
char* p = 0;
|
char* p = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user