www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/11/07:06:12

Message-ID: <B0000079220@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: djgpp AT delorie DOT com
Date: Thu, 11 Mar 1999 14:05:51 +0200
MIME-Version: 1.0
Subject: Small bug in TVision sources for DJGPP (tv104s.zip)
CC: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019