summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2020-01-03 21:38:18 +0100
committerMatthias Melcher <git@matthiasm.com>2020-01-03 21:38:18 +0100
commit618024827e1d26d790294cbe0aaefe8b67c31642 (patch)
tree5fa6500ef276472f99c41b26276f3602d3484146 /src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
parent1ba9e64ba9fad8bb0193239e53878d471b2f4d53 (diff)
parent27d22aeed6e03fdb211bdec1da99d6d7ea7f3974 (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index f28802ba0..b18b9c98e 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -891,7 +891,7 @@ char *Fl_WinAPI_System_Driver::preference_rootnode(Fl_Preferences *prefs, Fl_Pre
if ( (application==0L) || (application[0]==0) )
application = "unknown";
- snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename),
+ snprintf(filename + strlen(filename), FL_PATH_MAX - strlen(filename),
"/%s/%s.prefs", vendor, application);
for (char *s = filename; *s; s++) if (*s == '\\') *s = '/';
return filename;