Message-ID: From: "Andris Pavenis" To: djgpp AT delorie DOT com Date: Thu, 11 Mar 1999 14:05:51 +0200 MIME-Version: 1.0 Content-type: Multipart/Mixed; boundary=Message-Boundary-17479 Subject: Small bug in TVision sources for DJGPP (tv104s.zip) CC: "Salvador Eduardo Tropea (SET)" X-mailer: Pegasus Mail for Win32 (v3.02b14) Reply-To: djgpp AT delorie DOT com --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 +#include #include #include @@ -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--