kopia lustrzana https://github.com/jamescoxon/dl-fldigi
Control-Z bug fix
* Fix for seg fault when pressing ctrl-Z immediately after double Escapepull/2/head
rodzic
c565815d29
commit
5a9607ae8e
|
@ -273,6 +273,7 @@ void Fl_Text_Buffer_mod::replace( int start, int end, const char *s ) {
|
|||
// Range check...
|
||||
if (!s) return;
|
||||
if (start < 0) start = 0;
|
||||
if (end < 0) end = 0;
|
||||
if (end > mLength) end = mLength;
|
||||
|
||||
call_predelete_callbacks( start, end-start );
|
||||
|
|
|
@ -335,6 +335,8 @@ void Fl_Text_Buffer_mod::replace(int start, int end, const char *text)
|
|||
return;
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
if (end < 0)
|
||||
end = 0;
|
||||
if (end > mLength)
|
||||
end = mLength;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue