Mail Archives: djgpp/1999/03/11/07:06:12
--Message-Boundary-17479
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Hi!
Class TChDirDialog still have too small size of input line (68 bytes as in plain
DOS). So one can easily crash application that uses this class by trying to
change to directory which name is longer. Similar bug was fixed some time ago
for file open dialog.
Andris
--Message-Boundary-17479
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: tchdirdi.cc.diff
Date: 11 Mar 1999, 13:59
Size: 671 bytes.
Type: Text
--Message-Boundary-17479
Content-type: Application/Octet-stream; name="tchdirdi.cc.diff"; type=Text
Content-disposition: attachment; filename="tchdirdi.cc.diff"
--- classes/tchdirdi.cc~1 Wed Jan 13 01:49:22 1999
+++ classes/tchdirdi.cc Thu Mar 11 13:54:22 1999
@@ -13,6 +13,7 @@
// SET: Moved the standard headers here because according to DJ
// they can inconditionally declare symbols like NULL
#include <ctype.h>
+#include <stdio.h>
#include <string.h>
#include <unistd.h>
@@ -41,7 +42,7 @@
char *tmp;
options |= ofCentered;
- dirInput = new TInputLine( TRect( 3, 3, 30, 4 ), 68 );
+ dirInput = new TInputLine( TRect( 3, 3, 30, 4 ), FILENAME_MAX );
insert( dirInput );
tmp = _("Directory ~n~ame");
insert( new TLabel( TRect( 2, 2, 3+cstrlen(tmp), 3 ), tmp, dirInput ));
--Message-Boundary-17479--
- Raw text -