Author: greg.ercolano
Date: 2011-11-13 01:13:26 -0800 (Sun, 13 Nov 2011)
New Revision: 9175
Log:
Small fix: typo affected string length calc.


Modified:
   branches/branch-1.3/src/Fl_Native_File_Chooser_WIN32.cxx

Modified: branches/branch-1.3/src/Fl_Native_File_Chooser_WIN32.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Native_File_Chooser_WIN32.cxx    2011-11-13 
07:33:50 UTC (rev 9174)
+++ branches/branch-1.3/src/Fl_Native_File_Chooser_WIN32.cxx    2011-11-13 
09:13:26 UTC (rev 9175)
@@ -639,7 +639,7 @@
   if ( !name_in || name_in[0] == '\0' ) {
     sprintf(name, "%.*s Files", int(sizeof(name)-10), winfilter);
   } else {
-    if ((strlen(name)+strlen(winfilter)+3) < sizeof(name)) {
+    if ((strlen(name_in)+strlen(winfilter)+3) < sizeof(name)) {
       sprintf(name, "%s (%s)", name_in, winfilter);
     } else {
       sprintf(name, "%.*s", int(sizeof(name)), name_in);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to