Add check useful with macOS 10.15 public beta (Catalina).

This commit is contained in:
ManoloFLTK 2019-08-23 14:16:13 +02:00
parent 7e656413ff
commit 1b77967823

View File

@ -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);