summaryrefslogtreecommitdiff
path: root/src/Fl_Native_File_Chooser_MAC.mm
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-08-23 14:16:13 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-08-23 14:17:06 +0200
commit1b77967823a8048eb8f0af2ee2da2fe4fcea7fab (patch)
tree2422d6ff766490de4e1baceedd1ef24a354e5565 /src/Fl_Native_File_Chooser_MAC.mm
parent7e656413ff9d6cd79964eb1d34d83ce414aba2c3 (diff)
Add check useful with macOS 10.15 public beta (Catalina).
Diffstat (limited to 'src/Fl_Native_File_Chooser_MAC.mm')
-rw-r--r--src/Fl_Native_File_Chooser_MAC.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm
index 26aee3a7c..48d489f1e 100644
--- a/src/Fl_Native_File_Chooser_MAC.mm
+++ b/src/Fl_Native_File_Chooser_MAC.mm
@@ -410,7 +410,7 @@ int Fl_Quartz_Native_File_Chooser_Driver::get_saveas_basename(void) {
if (strcmp(d, "/") == 0) l = 1;
int lu = strlen(UNLIKELYPREFIX);
// Remove UNLIKELYPREFIX between directory and filename parts
- memmove(q + l, q + l + lu, strlen(q + l + lu) + 1);
+ if (memcmp(q+l, UNLIKELYPREFIX, lu) == 0) memmove(q + l, q + l + lu, strlen(q + l + lu) + 1);
}
set_single_pathname( q );
free(q);