diff options
| -rw-r--r-- | src/Fl_Native_File_Chooser_Kdialog.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Native_File_Chooser_Kdialog.cxx b/src/Fl_Native_File_Chooser_Kdialog.cxx index a89a74abc..cab64b217 100644 --- a/src/Fl_Native_File_Chooser_Kdialog.cxx +++ b/src/Fl_Native_File_Chooser_Kdialog.cxx @@ -205,6 +205,7 @@ char *Fl_Kdialog_Native_File_Chooser_Driver::parse_filter(const char *f) { const char *r = strchr(f, '{'); char *developed = NULL; if (r) { // with {} + if (r <= p) return NULL; char *lead = new char[r-p]; memcpy(lead, p+1, (r-p)-1); lead[(r-p)-1] = 0; const char *r2 = strchr(r, '}'); |
