diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-01-22 20:36:12 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-01-22 20:36:12 +0100 |
| commit | 595d2df049599890ea0a0cc3aa1d23e6388ed883 (patch) | |
| tree | b1ddfe5457c2cac37a99625d98226ba65120d97d /src | |
| parent | baa3c6ddc0cf8136ede5fb08acec54675cdc5582 (diff) | |
Fix wrong path var and typos
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Unix/Fl_Unix_System_Driver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/Unix/Fl_Unix_System_Driver.cxx b/src/drivers/Unix/Fl_Unix_System_Driver.cxx index fc13cbf37..9ec56b9b3 100644 --- a/src/drivers/Unix/Fl_Unix_System_Driver.cxx +++ b/src/drivers/Unix/Fl_Unix_System_Driver.cxx @@ -453,7 +453,7 @@ char *Fl_Unix_System_Driver::preference_rootnode(Fl_Preferences * /*prefs*/, const char *vendor, const char *application) { - // Create a static buffer fo our filename + // Create a static buffer for our filename static char *buffer = 0L; if (!buffer) buffer = (char*)::calloc(1, FL_PATH_MAX); buffer[0] = '\0'; @@ -485,7 +485,7 @@ char *Fl_Unix_System_Driver::preference_rootnode(Fl_Preferences * /*prefs*/, /* Memory based preferences are never saved to any file, so the path is - just and empty string. + just an empty string. */ char *Fl_Unix_System_Driver::preference_memory_rootnode( const char * /*vendor*/, @@ -558,7 +558,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode( // 2: If this base path does not exist, try the 1.3 path if (::access(prefs_path_14.c_str(), F_OK) == -1) { Fl_String prefs_path_13 = home_path + ".fltk/" + vendor; - if (::access(prefs_path_14.c_str(), F_OK) == 0) { + if (::access(prefs_path_13.c_str(), F_OK) == 0) { prefs_path_13.append('/'); prefs_path_13.append(application); prefs_path_13.append(".prefs"); |
